user9618103
user9618103

Reputation:

dyld: Library not loaded: @rpath/Almofire.framework Image not found

Please read following details before answer :

I have Xcode 9.3 and OS 10.13.4 macOS High Sierra.

Step 1: Create new Xcode Project.

Step 2: Clean Derive Data folder.

Step 3: Uninstall CocoaPods. ReInstall CocoaPods.

Step 4: Clean Pod Catch as per this link. How to clear or clean specific pod cache

Step 5: Install Almofire using cocoapods.(Note: almofire or any other pods.)

pod 'Alamofire' && pod 'Alamofire', '~> 4.7'

step 6: Open ProjectName.xcworkspace and Build project.

Error : Command /bin/sh failed with exit code 1 Error Image

To Solve this error I do Solution of above error

[CP] Embed Pods Frameworks: Enable script when running.

Step 7: Run Application: Application Crash with below error

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

Referenced from: /Users/rigel/Library/Developer/CoreSimulator/Devices/9B2BC541-696F-4E44-8D5D-0CD4A07FF18F/data/Containers/Bundle/Application/4268ED9E-AE44-4C0A-BE9A-472C689D67E8/almotest.app/almotest

Reason: image not found Crash Image

NOTE:

And when I try to run this application on other mac it is working fine. Without error

Please give me proper solution of this error. what I have to do.

Upvotes: 0

Views: 3432

Answers (1)

Catherine
Catherine

Reputation: 682

enter image description here

Add Alamofire framework in Embedded binaries

Upvotes: 0

Related Questions