iOS crash report: System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_

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

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.