iOS 导入Framework 报错 Reason image not found

自己封装的SDK在导入测试项目的时候发现直接闪退了,报错如下:

1
2
3
4
5
dyld: Library not loaded: @rpath/DZKJQuoteModule.framework/DZKJQuoteModule

Referenced from: /Users/jocelen/Library/Developer/CoreSimulator/Devices/65C4E1C6-0601-4E8B-9011-E29B938BF09B/data/Containers/Bundle/Application/A15117A4-D048-4D73-A4EF-6349E0075721/test1.app/test1

Reason: image not found

查阅资料后发现是bunlde资源未正确找到

解决办法如下:

依次打开:Targets–>General–>Embedded Binaries–> + 添加自己导入的framework 即可正确找到资源路径

7de7fe217aed2ca7.png

0%