Unity App Crash on new Xcode 14.0 and iOS 16

874 阅读1分钟

问题1: Unity App Crash on new Xcode 14.0 and iOS 16

unity打包iOS项目,一直都没有问题,但是最近更新了xcode 14.0和iOS 16,就出现了crash,如问题:0x0000000112ae4198 in ~AutoLock [inlined] at /Users/bokken/buildslave/unity/build/Runtime/Threads/Mutex.h:34,

191863032-859d026c-ed20-46ce-91c5-8b7ba25577e8.png

解决办法,修改scheme配置即可

1667393483708.jpg

问题2:Thread 1: "Supported orientations has no common orientation with the application, and [UnityDefaultViewController shouldAutorotate] is returning YES"

  • 如图所示

截屏2023-08-09 18.14.14.png

这个问题是由于iOS项目只允许竖屏,而unity是横屏导致,解决办法就是跟unity工程师协商,只竖屏或横屏或横竖屏都可 或者iOS项目横竖都选上

截屏2023-08-10 10.27.57.png