dyld: Library not loaded: @rpath/libswiftContacts.dylib

前端 未结 5 947
我在风中等你
我在风中等你 2021-01-12 22:03

dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib

dyld: Library not loaded: @rpath/libswiftCore.dylib. Issue persist

I know that theses question ha

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-12 22:13

    In our case, it was clear that there was a bug in the way Xcode was resolving dependencies to our target.

    Let's me start by saying, the solution was:

    import PassKit
    

    Now, before you raise that eyebrow, here is why this worked:

    1. We relied on a Swift framework that imports PassKit
    2. We distributed the prebuilt binary to team members
    3. The team observed the crash, just as OP mentioned it
    4. Adding that import in the app target made Xcode embed the required swift libraries

    Note: Just linking PassKit in the GUI did absolutely nothing.

提交回复
热议问题