With Xcode Version 26.5 (17F42) apps can no longer be launched on a real Vision Pro once migrated to visionOS 27 Beta 2.
At launch there is an EXC_BAD_ACCESS runtime error in an initialiser.
If you launch apps on a real iPhone/Ipad with OS 27 Beta 2 the program will stop before the end of its start, but there is no precise line with the error. Xcode just stop in assembly code in the debugger, in the init phase of Swift where it searches for which objects to instantiate at launch.
After investigating, the error comes from a debug setting from Xcode to show the stack trace.
To avoid the error when run from Xcode Version 26.5 (17F42)
In Xcode, open Product > Scheme > Edit Scheme. Select the Run action in the sidebar, then open the Options tab. Find Queue Debugging and uncheck Enable backtrace recording.
If Queue debugging is enabled, then the program crashes when launched
It is useful to be able to run apps from the production Xcode to devices with 27 OSes in beta to be able to test that everything will work fine for new versions of apps released before OSes 27 release.
Thank you
A previous post was made but the cause was badly identified.
New Feedback including a sample code
FB23384318
7
0
549