dyld:未加载库:@ rpath / Alamofire.framework /版本/ A / Alamofire原因:找不到图片 [英] dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire Reason: image not found

查看:1908
本文介绍了dyld:未加载库:@ rpath / Alamofire.framework /版本/ A / Alamofire原因:找不到图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 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:

  • http://blog.cocoapods.org/CocoaPods-0.36/
  • http://samdmarshall.com/blog/swift_and_objc.html
  • https://github.com/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:


  1. pod deintegrate pod update pod install

  2. 重新导入三个swift库文件( cocoapods

  3. 链接框架和库
  4. $中导入三个框架 b $ b
  5. 完全清理和构建

  1. pod deintegrate, pod update, pod install
  2. Reimported the three swift library files (generated by cocoapods)
  3. Imported the three frameworks only in the Linked Frameworks and Libraries
  4. Full clean and a build


推荐答案


  • 重新导入了三个swift库文件(生成的):


    • 仅导入链接框架和库中的三个框架

    • 完全干净和构建

    这篇关于dyld:未加载库:@ rpath / Alamofire.framework /版本/ A / Alamofire原因:找不到图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆