我使用 CocoaPods v0.36 与我的 Swift 专案和以下广告连播: Alamofire , CocoaLumberjack , SwiftyJSON 。
I'm using CocoaPods v0.36 with my Swift project and the following pods: Alamofire, CocoaLumberjack, SwiftyJSON.
一切都很好,直到我使用我的开发人员ID。 编译器开始有问题编译项目,一些修复和更新 CocoaPods 我的项目编译,但在运行时,我得到以下错误:
Everything was fine till I used my Developer ID. Compiler started to have problems to compile the project, after some fixes and updates for CocoaPods my project compiles but at runtime I get the following error:
dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire Referenced from: /Users/Ivan/Library/Developer/Xcode/DerivedData/myApp-bsxfcnwqpaxnzbhencwzteasshzf/Build/Products/Debug/myApp.app/Contents/MacOS/myApp Reason: image not found我阅读与此相关的不同帖子:
I read different posts related to this:
- blog.cocoapods/CocoaPods-0.36/
- samdmarshall/blog/swift_and_objc.html
- github/Alamofire/Alamofire/issues/101
- blog.cocoapods/CocoaPods-0.36/
- samdmarshall/blog/swift_and_objc.html
- github/Alamofire/Alamofire/issues/101
但没有任何解决方案。
我有三个框架是红色的,所以似乎没有生成/链接。
The only clue that I have is that the 3 frameworks are in red, so it seems that are not generated/linked.
现在,我已删除了我的开发者ID,但问题仍然存在。
Now, I've removed my Developer ID, but the issue is still there. Does anybody have an idea?
编辑: 已解决 在我执行的步骤之下: / p>
Solved Below the steps I did:
推荐答案
- 仅导入链接框架和库中的三个框架
- 完全干净和构建
更多推荐
dyld:未加载库:@ rpath / Alamofire.framework /版本/ A / Alamofire原因:找不到图片
发布评论