iOS crash report: System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_

Kim Strasser 1,281 Reputation points
2025-01-25T11:38:30.09+00:00

I get the following messages in my iOS crash report:

SharedCodeProject_MyClass__Updated__301_MoveNext (in MyGameiOS) (<unknown>:1) System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_ (in MyGameiOS) + 388 MyGameiOS_SharedCodeProject_MyClass_Update_Microsoft_Xna_Framework_GameTime (in MyGameiOS) + 184 -[iOSGameView doTick] (in MyGameiOS) (registrar.mm:13304)

I have uploaded my iOS build on TestFlight and then installed it on my iPad. My game always crashes 1-2 seconds after I opened it on my iPad. It only crashes in release mode and not in debug mode. It also crashes when I remove the push notification code in Program.cs where I check if push notifications are enabled or not.

Does my game crash in MyClass.cs in SharedCodeProject? I don´t know what all these messages from the iOS crash report mean and it is difficult for me to find the issue because my game crashes in release mode and I don´t know how to log the error when my game is in release mode.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,877 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 79,156 Reputation points Microsoft Vendor
    2025-01-31T02:36:24.8433333+00:00

    Hello,

    Please right click the project, choose properties, select the iOS, choose the Build, find the release & net8.0-ios, change the Link Framework SDKs Only to the Don't link , then release your application.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.