升级Xcode10~11报错或者运行时报错,或者模拟器打开崩溃

2019-07-16  本文已影响0人  Onlyoner

报错原因1

Reason: no suitable image found. Did find: /usr/lib/libauto.dylib: mach-o, b

参考官方文档:https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes

Simulator
Known Issues
Simulators for iOS 9.3 and earlier might fail to launch Swift apps with the message: “dyld: Library not loaded: /usr/lib/libauto.dylib”. (49326587)
Workaround: Run the following command in Terminal for the relevant version of iOS:

$ sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Content

9.3.simruntime中的9.3可以改成任一版本号如9.2\8.3等

报错原因2:

dyld: Library not loaded: /usr/lib/libstdc++.6.dylib
Referenced from: /Users/...
Reason: no suitable image found.  Did find:
/usr/lib/libstdc++.6.dylib: mach-o, but not built for iOS simulatort

参考这篇文章https://www.jianshu.com/p/76346561d393

上一篇 下一篇

猜你喜欢

热点阅读