简体   繁体   English

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

[英]Library not loaded: @rpath/Alamofire.framework/Alamofire

When I try to run my iOS App in Xcode in app:当我尝试在应用程序中的 Xcode 中运行我的 iOS 应用程序时:

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)

What should i do?我该怎么办?

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.您应该做的第一件事是查看 Alamofire 的自述文件。 It has great explanations for manual set up, CocoaPods and Carthage.它对手动设置、CocoaPods 和 Carthage 有很好的解释。 You should most likely be able to solve your problem that way.您应该很可能能够以这种方式解决您的问题。

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.您显然没有使用 CocoaPods,所以您要么使用 Carthage,要么手动安装。 Either way, you certainly need to Embed Binary as @Dato' pointed out.无论哪种方式,您当然都需要像@Dato' 指出的那样Embed Binary文件。 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.您可能错过的另一件事是您需要Embed Framework以便 dyld 可以在运行时获取 Alamofire.framework。

嵌入框架

Hopefully that helps shed some light.希望这有助于阐明一些情况。 If it doesn't, please provide some additional information to give us a better context.如果没有,请提供一些其他信息,以便我们更好地了解上下文。

Don't forget to set here别忘了在这里设置

在此处输入图片说明

and here和这里

在此处输入图片说明

Try to link all your dependencies as static libraries rather than frameworks (for example, if you're using Cocoapods you can remove use_frameworks! from your Podfile), that should fix the issue for now.尝试将所有依赖项链接为静态库而不是框架(例如,如果您使用 Cocoapods,则可以从 Podfile 中删除 use_frameworks!),现在应该可以解决问题。 check below link for more details https://github.com/Alamofire/Alamofire/issues/3051#issuecomment-580139830查看以下链接了解更多详情https://github.com/Alamofire/Alamofire/issues/3051#issuecomment-580139830

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 dyld:库未加载:@rpath/Alamofire.framework/Alamofire 图像未找到 - dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire image not found dyld:库未加载:@rpath/Alamofire.framework/Alamofire 引用自: - dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire Referenced from: dyld:库未加载:@rpath/Alamofire.framework/Alamofire 和 AlamofireImage - dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire and AlamofireImage dyld:未加载库:@ rpath / Alamofire.framework / Alamofire - dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire dyld:库未加载:设备iOS 9上的@ rpath / Alamofire.framework / Alamofire错误,无法编译 - dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire error on device iOS 9 , not able to compile dyld:库未加载:@rpath/Alamofire.framework/Versions/A/Alamofire 原因:找不到图像 - dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire Reason: image not found dyld:库未加载:@ rpath / Alamofire.framework / Alamofire原因:找不到图像 - dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire Reason: image not found Swift,Alamofire.framework:没有这样的文件或目录 - Swift, Alamofire.framework: No such file or directory Xcode项目中的Alamofire RED - 没有Alamofire.framework文件 - Alamofire RED in Xcode project - No Alamofire.framework file 库未加载 - Alamofire - Library not loaded- Alamofire
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM