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

后端 未结 8 1808
太阳男子
太阳男子 2020-12-02 23:43

I\'ve built a Swift framework and now I\'m trying to start building a Swift iOS application that will use that framework. I\'m getting this error:

dyld: Libr         


        
8条回答
  •  情深已故
    2020-12-02 23:52

    After several days of being stuck with this issue I finally found something that worked for me; hopefully this will help others too.

    Turns out that specifically using print() anywhere in the code will somehow force libswiftSwiftOnoneSupport.dylib to be loaded and the issue will go away.

    I'm using Xcode 10.1, Swift 4.2 and the pod that was giving me this issue was Nimble.

    BTW, I am aware of @S2dent's suggestion to "just add some code" but in my case my framework already had several different classes so it didn't help me.

提交回复
热议问题