dyld:未加载库:@ rpath / Alamofire.framework /版本/ A / Alamofire原因:找不到图片

编程入门 行业动态 更新时间:2024-10-26 23:35:47
本文介绍了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:

  • 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:

  • pod deintegrate , pod update , pod install
  • 重新导入三个swift库文件( cocoapods )
  • 在链接框架和库
  • $中导入三个框架 b $ b
  • 完全清理和构建
  • pod deintegrate, pod update, pod install
  • Reimported the three swift library files (generated by cocoapods)
  • Imported the three frameworks only in the Linked Frameworks and Libraries
  • Full clean and a build
  • 推荐答案

  • 重新导入了三个swift库文件(生成的):
    • 仅导入链接框架和库中的三个框架
    • 完全干净和构建

    更多推荐

    dyld:未加载库:@ rpath / Alamofire.framework /版本/ A / Alamofire原因:找不到图片

    本文发布于:2023-11-26 15:32:30,感谢您对本站的认可!
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:找不到   加载   原因   版本   图片

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!