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

前端 未结 30 2011
小蘑菇
小蘑菇 2020-11-22 04:27

I am trying to run a Swift app on my iPhone 4s. It works fine on the simulator, and my friend can successfully run it on his iPhone 4s. I have iOS 8 and the official release

30条回答
  •  醉酒成梦
    2020-11-22 05:07

    I was having this issue with running my Swift tests (but not my app). It turns out that the test needed to have more than @executable_path/Frameworks in it's Runpath Search Paths build setting for the test target. Setting the Runpath Search Paths to the following worked a charm for me:

    $(inherited)
    @executable_path/Frameworks
    @loader_path/Frameworks
    

提交回复
热议问题