[英]Framework Library not loaded: 'Image not found'
I have a framework that have Pods and my main project too. 我有一个框架,有Pods和我的主要项目。
Error: 错误:
dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
Referenced from: /Users/station7/Library/Developer/CoreSimulator/Devices/472E34A1-3D59-4C1F-90A3-3F3FF2998CC4/data/Containers/Bundle/Application/5E4E1D98-6451-4F1D-8E90-A032029D634D/MyApp.app/Frameworks/requestMyApp.framework/requestMyApp
Reason: image not found
Alamofire.framework
exist in framework pods But no in the main project. Alamofire.framework
存在于框架pod中但在主项目中没有。 If the framework exist in the
main project
the error never appear.如果框架存在于
main project
则错误永远不会出现。 But is in-necessary haveAlamofire
in both projects in podfile, Considering that the main project does not use at all theAlamofire
.但是必须在
Alamofire
中的两个项目中都有Alamofire,考虑到主要项目根本没有使用Alamofire
。
i'm following this post: source 1 and source 2 我正在关注这篇文章: 源1和源2
I'm trying all of steps that are sources but nothing works. 我正在尝试所有步骤,但没有任何作用。
The Framework
uses post but put it into the Main Project
, seems also need Alamofire
in pods. Framework
使用post但将其放入Main Project
,似乎还需要Alamofire
in pods。 That is, to fix must be Alamofire
in both projects. 也就是说,要在两个项目中修复必须是
Alamofire
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.