iOS Builds Crashing without - BuildOptions.AllowDebugging enabled

Hello,

I’ve encountered an issue with my Unity project where the iOS builds consistently crash upon entering the first scene. However, I’ve noticed a peculiar behavior: when I enable BuildOptions.AllowDebugging, the crashes no longer occur, and I don’t observe any errors in Xcode or SRdebugger.

Here are some additional details about my setup:

  • Unity version: 2021.3.27f1
  • macOS version: ventura 13.6.1
  • Xcode version: 15.1

My specific question is:

How does BuildOptions.AllowDebugging affect the build process, and why would enabling it prevent crashes? What does this option change under the hood?

I’ve thoroughly checked Xcode and SRdebugger for error messages but haven’t found any relevant information. Any insights or suggestions from the community would be greatly appreciated.

Thank you in advance for your assistance!