简体   繁体   中英

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.

在此处输入图片说明

Add Alamofire framework in Embedded binaries

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM