dyld: Library not loaded: @rpath/MySDK.framework/MySDK 错误解决

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

  Referenced from: /var/mobile/Applications/08B6D2C2-5028-4A64-93F5-1252B0B0BCAB/MyApp.app/MyApp

  Reason: no suitable image found.  Did find:

/private/var/mobile/Applications/08B6D2C2-5028-4A64-93F5-1252B0B0BCAB/MyApp.app/Frameworks/MySDK.framework/MySDK: code signature invalid for '/private/var/mobile/Applications/08B6D2C2-5028-4A64-93F5-1252B0B0BCAB/MyApp.app/Frameworks/MySDK.framework/MySDK'


1、查看MySDK.framework是否为动态库(xcode6下默认是动态库)

2、若不需要使用动态库,则将其改为静态库,并重新生成framework



3、若必须使用动态库,则需要在MyApp的工程中做如下配置(未验证,网上是这么说的)

dyld: Library not loaded: @rpath/MySDK.framework/MySDK 错误解决_第1张图片




你可能感兴趣的:(image,frameworks,No,suitable,dyld,rpath)