iOS crash report: System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_

Kim Strasser 1,301 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,900 questions
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 79,471 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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.