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)
只需要把Build Phases下 Link Binary With Libraries 连接的Spring.framework文件改为Optional即可解决。
至于为什么,可能是因为引用的某些framework只能存在于高版本sdk中,如果编译到低版本的iOS就会发生这样的问题。把status由Required 修改成Optional解决。