库未加载:@ rpath / Alamofire.framework / Alamofire

编程入门 行业动态 更新时间:2024-10-26 18:15:37
本文介绍了库未加载:@ rpath / Alamofire.framework / Alamofire的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我尝试在应用程序中运行我的iOS应用程序在Xcode:

When I try to run my iOS App in Xcode in app:

dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire Referenced from: /private/var/mobile/Containers/Bundle/Application/78CC9A04-53B7-49D3-9E4D-7DF0CAA41DD0/Sawasdee.app/Sawasdee Reason: image not found (lldb)

我该怎么办?

推荐答案

如果不知道你的项目设置是什么,很难给出确切的建议。您应该做的第一件事是结帐Alamofire的 README 。它有很好的解释手动设置,CocoaPods和迦太基。你应该很可能能够以这种方式解决你的问题。

Without knowing exactly how you have your project set up, it's difficult to give exact advice. The first thing you should do is checkout out the README of Alamofire. It has great explanations for manual set up, CocoaPods and Carthage. You should most likely be able to solve your problem that way.

如果你仍然不能弄清楚,那么让我猜一下。你显然不使用CocoaPods,所以你使用Carthage或手动安装。无论哪种方式,你肯定需要嵌入二进制作为@Dato'指出。你可能错过的另一件事是,你需要 Embed Framework ,以便dyld可以在运行时拾取Alamofire.framework。

If you still cannot figure it out, then let me take a guess. You're obviously not using CocoaPods, so you are either using Carthage or manual installation. Either way, you certainly need to Embed Binary as @Dato' pointed out. The other thing you may have missed is that you need to Embed Framework so that the dyld can pick up the Alamofire.framework at runtime.

希望这有助于散发一些光。如果没有,请提供一些额外的信息,为我们提供更好的上下文。

Hopefully that helps shed some light. If it doesn't, please provide some additional information to give us a better context.

更多推荐

库未加载:@ rpath / Alamofire.framework / Alamofire

本文发布于:2023-11-26 03:36:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1632478.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   rpath   framework   Alamofire

发布评论

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

>www.elefans.com

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