xcode解决问题dyld: Library not loaded
一、问题
编译通过,联机调试时,应用启动闪退,XCODE的Output出现提示:
dyld: Library not loaded: /System/Library/Frameworks/AdSupport.framework/AdSupport
Referenced from: /var/mobile/Applications/。。。。。
Reason: image not found
二、解决方法
Found out the solution to the problem. The problem was setting the added frameworks as requiredinstead of optional
GO TO Project-> Targets-> Build Phases-> Link Binary with Libraries
There, set the status of added frameworks to Optional
This solved my problem.
参考:
http://stackoverflow.com/questions/12915050/still-dyld-library-not-loaded