1

I am getting this error in Adhoc build , but in development mode it works just fine.

Dyld Error Message:

Library not loaded: @rpath/Alamofire.framework/Alamofire Referenced from: /private/var/mobile/Containers/Bundle/Application/DA4702F0-6A4C-4EB6-99D0-255ABB6E3F57/Real Estate.app/Real Estate Reason: image not found Dyld Version: 353.12

luk2302
  • 55,258
  • 23
  • 97
  • 137
neo D1
  • 1,710
  • 13
  • 15
  • What makes you think this is a CocoaPods issue? If you think it is, we need to see your Podfile. – Jon Shier May 10 '15 at 07:41
  • Bcz i made a build without the pods and manually addying the frameworks it worked fine in the adhoc build . – neo D1 May 10 '15 at 10:37
  • target 'Real Estate' do #pod 'SDWebImage', '~>3.6' pod 'SwiftyJSON' pod 'AFNetworking', '~> 2.5' pod 'MMMaterialDesignSpinner' pod 'SVPullToRefresh' pod 'Google-Maps-iOS-SDK', '~> 1.9.2' pod 'SwiftSpinner' pod 'SWXMLHash', '~> 1.0.0' pod 'Alamofire', '~> 1.2' end target 'Real EstateTests' do end – neo D1 May 10 '15 at 10:37
  • possible duplicate of [dyld: Library not loaded: @rpath/libswiftCore.dylib](http://stackoverflow.com/questions/26024100/dyld-library-not-loaded-rpath-libswiftcore-dylib) – Sahil Kapoor Jun 02 '15 at 12:26

1 Answers1

2

I spent several hours trying to fix this error, and I resolved only after create a brand new project with Xcode and use same pods. I just discovered that the in the Build Phases of target weren't last two sections:

Missing phases

They are defined as run scripts:

Embed Pods Frameworks

"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh"

And:

Copy Pods Resources

"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh"

I hope this help.

carmine
  • 1,597
  • 2
  • 24
  • 33
  • I also have the same issue.I tried every solutions above.But not working.Please help me to solve this.After adding framework in 'Copy Files Phase' and 'Linked libraries',in my project it shows the framework as in red color.So its telling like 'framework not found alamofire' – Madhumitha Jul 19 '16 at 11:59