dyld: Library not loaded: @rpath/libswiftCore.dylib 解决方案

3,707 阅读1分钟

这个错误一般出现在OC 与Swift混编的时候:

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

Referenced from: /var/.../xxxSwift

Reason: no suitable image found. Did find:

/xxx/.../xxx.app/Frameworks/libswiftCore.dylib'

在build setting 里面搜索 Swift Code


这个默认设置是NO,设置为YES就可以了!!!