当我尝试在应用程序中运行我的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
发布评论