Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 1 Library missing
Library not loaded: @loader_path/libVisionOS-lib.dylib
Referenced from: <59FFC4CD-796F-3BBC-9C7E-04461E821DC8> /Volumes/VOLUME/*/AVPPlatform.app/Frameworks/UnityFramework.framework/UnityFramework
Reason: tried: '/private/var/containers/Bundle/Application/7159AA7B-96F7-4C28-ADAA-C7E490065721/AVPPlatform.app/Frameworks/UnityFramework.framework/libVisionOS-lib.dylib' (no such file), '/usr/local/lib/libVisionOS-lib.dylib' (no such file), '/usr/lib/libVisionOS-lib.dylib' (no such file, not in dyld cache)
(terminated at launch; ignore backtrace)
Xcode build succeeds but crashes when it tries to run on the device
dyld[909]: Library not loaded: @loader_path/libVisionOS-lib.dylib
Referenced from: <146B15BB-C71A-3B77-92BF-471BD5345C9B> /private/var/containers/Bundle/Application/F1468BB4-2011-49B6-B34C-63905AA29E0B/DeskBuddies.app/Frameworks/UnityFramework.framework/UnityFramework
Reason: tried: '/private/var/containers/Bundle/Application/F1468BB4-2011-49B6-B34C-63905AA29E0B/DeskBuddies.app/Frameworks/UnityFramework.framework/libVisionOS-lib.dylib' (no such file), '/usr/local/lib/libVisionOS-lib.dylib' (no such file), '/usr/lib/libVisionOS-lib.dylib' (no such file, not in dyld cache)
Well, the first thing that hit me was that it errored on building because the scene wasn’t selected in the build window. After selecting that, the project built fine in Xcode and ran succesfully in simulator.
I did a new Xcode build for Device and it ran just fine. Then I did built over the original Xcode project, changing SDK to Device and doing replacement and that worked as well.
I forgot to mention that the dylib it’s trying to load is only for simulator. On device the library is statically linked in. This tells me that you tried to run a simulator build on device.
Interesting - I recall explicitly changing this but maybe my order of things was wrong as I was getting frustrated I will try again and let you know what I find. Thank you for the insight!