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

Created on 14 Jul 2015  ·  3Comments  ·  Source: Carthage/Carthage

I am not having trouble building or linking, but get this error near startup:

dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
Referenced from: /Users/josephdecarlo/Library/Developer/CoreSimulator/Devices/0EFCC13F-38B8-441B-926A-D823057C5E80/data/Containers/Bundle/Application/F3F33C21-8DE0-4651-8B71-E906E48A4827/goref-ios.app/goref-ios
Reason: image not found

I have several libraries I've added with Carthage, but it fails on this one first. I imagine, the other ones would also fail if I were to remove references to Alamofire.

I'm new to Carthage, but am not seeing how to resolve this...

Things I have verified from other issues on here:

  • Framework Search paths includes: $(PROJECT_DIR)/Carthage/Build/iOS (and the directory is the correct one)
  • Runpath Search Paths includes: $(inherited) and @executable_path/Frameworks

I am really excited to get this going, but am not sure where to go from here. I get the same behavior in the simulator and on device. (iOS 8.3 SDK, XCode 6.3.2)

Any help is appreciated.

Joe

question

Most helpful comment

Did you check this?: https://github.com/Carthage/Carthage/issues/615#issuecomment-120927579

Is there the Embed Frameworks build phase? If there isn't, you should add a new "Copy Files Phase", then select "Framrworks" for Destination, add frameworks to the list, and check "Code Sign On Copy" checkboxes.

All 3 comments

Did you check this?: https://github.com/Carthage/Carthage/issues/615#issuecomment-120927579

Is there the Embed Frameworks build phase? If there isn't, you should add a new "Copy Files Phase", then select "Framrworks" for Destination, add frameworks to the list, and check "Code Sign On Copy" checkboxes.

I had looked at that issue, but missed the Embed Frameworks part. My apologies. Thank you for your quick reply. This seems to have solved my issue.

No problem! :sparkles:

Was this page helpful?
0 / 5 - 0 ratings