模拟器调试正常,直接运行闪退

在使用了 三方动态库的工程中,如果模拟器调试正常,直接运行闪退,在真机调试报如下错误,
dyld: Library not loaded: @rpath/xxx.framework/Versions/A/xxx
   
Referenced from: /Users/Ivan/Library/Developer/Xcode/DerivedData/myApp-bsxfcnwqpaxnzbhencwzteasshzf/Build/Products/Debug/myApp.app/Contents/MacOS/myApp  

Reason: image not found

解决方法:

dyld library not loaded @rpath/framework

please make sure that the framework is showing under target->general->embeded binaries and linked framework and libraries section

if not then add by clicking + sign add just add the framework only

done!

你可能感兴趣的:(ios)