asiandudeCom
asiandudeCom

Reputation: 441

Library not loaded: @rpath/Alamofire.framework/Alamofire

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)

What should i do?

Upvotes: 0

Views: 7281

Answers (3)

islam kasem
islam kasem

Reputation: 61

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. check below link for more details https://github.com/Alamofire/Alamofire/issues/3051#issuecomment-580139830

Upvotes: 0

cnoon
cnoon

Reputation: 16663

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.

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.

Embed Frameworks

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

Upvotes: 1

Nurdin
Nurdin

Reputation: 23893

Don't forget to set here

enter image description here

and here

enter image description here

Upvotes: 0

Related Questions