1
votes

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

1
What makes you think this is a CocoaPods issue? If you think it is, we need to see your Podfile.Jon Shier
Bcz i made a build without the pods and manually addying the frameworks it worked fine in the adhoc build .neo D1
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 endneo D1

1 Answers

2
votes

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.