Reason: image not found 异常解决办法

dyld: Library not loaded: @rpath/Spring.framework/Spring

Referenced from: /Users/langyue/Library/Developer/CoreSimulator/Devices/3AC87E70-AEE0-42FC-B74D-83126EFB7873/data/Containers/Bundle/Application/4979893E-FAD9-4580-88D0-6CD0874715A2/SpringDemo.app/SpringDemo

Reason: image not found

(lldb)

Reason: image not found 异常解决办法_第1张图片


只需要把Build Phases下 Link Binary With Libraries 连接的Spring.framework文件改为Optional即可解决。


Reason: image not found 异常解决办法_第2张图片

至于为什么,可能是因为引用的某些framework只能存在于高版本sdk中,如果编译到低版本的iOS就会发生这样的问题。把status由Required 修改成Optional解决。

你可能感兴趣的:(Reason: image not found 异常解决办法)