Xcode 13 在 iPhone 6,iOS 12.5 真机上面运行发生崩溃,崩溃信息如下:
dyld: Symbol not found: ___chkstk_darwin
Referenced from: /private/var/containers/Bundle/Application/3B520A5C-F558-4EF3-8300-1A457A02DB09/Demo.app/Frameworks/libswift_Concurrency.dylib (which was built for iOS 13.0)
Expected in: /usr/lib/libSystem.B.dylib
in /private/var/containers/Bundle/Application/3B520A5C-F558-4EF3-8300-1A457A02DB09/Demo.app/Frameworks/libswift_Concurrency.dylib
解决方法
方法一
- 在 Targets -> Build Setting -> Other Linker Flags 中添加
-Wl,-weak-lswift_Concurrency -Wl,-rpath,/usr/lib/swift
方法二
- 更新到 Xcode 13.2+
网友评论