在使用了 三方动态库的工程中,如果模拟器调试正常,直接运行闪退,在真机调试报如下错误,
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应用程序在真机上闪退的问题,特别是当遇到动态库加载失败的情况。通过确保第三方动态库正确地嵌入到工程中,可以有效避免此类问题。

168

被折叠的 条评论
为什么被折叠?



