美文网首页
Xcode 13 - iOS 12.5 libswift_Con

Xcode 13 - iOS 12.5 libswift_Con

作者: ienos | 来源:发表于2022-06-23 18:41 被阅读0次

    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
    

    解决方法

    参考 Xcode Release Note

    方法一

    • 在 Targets -> Build Setting -> Other Linker Flags 中添加 -Wl,-weak-lswift_Concurrency -Wl,-rpath,/usr/lib/swift

    方法二

    • 更新到 Xcode 13.2+

    相关文章

      网友评论

          本文标题:Xcode 13 - iOS 12.5 libswift_Con

          本文链接:https://www.haomeiwen.com/subject/vnjmvrtx.html