库未加载:@ rpath / Alamofire.framework / Alamofire [英] Library not loaded: @rpath/Alamofire.framework/Alamofire

查看:620
本文介绍了库未加载:@ 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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