0

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.

  • which OS version you are using and which version of cocoapods you are using. make sure both are updated – Sumanth Apr 26 '18 at 06:48
  • A general advice on third party issues. Do check the GitHub issues (Closed preferably) other than stack overflow. https://github.com/Alamofire/Alamofire/issues/101 – Nitish Apr 26 '18 at 06:54
  • I have latest OS version 10.13.4 and latest cocoapods version 1.5.0 and Xcode version 9.3, @Sumanth –  Apr 26 '18 at 07:06
  • @Nitish thanks for your replay. But when i am going to run same code in another MAC it is working fine. what about that? –  Apr 26 '18 at 07:07
  • Just a note. **pod 'Alamofire', '~> 4.7'** is the latest one. Try changing to this. – Nitish Apr 26 '18 at 07:10
  • @Nitish **pod 'Almofire','~>4.7'** not working. –  Apr 26 '18 at 10:52

1 Answers1

0

enter image description here

Add Alamofire framework in Embedded binaries

Catherine
  • 654
  • 5
  • 15
  • error: /Users/rigel/Library/Developer/Xcode/DerivedData/almotest-eskarskhigrggyamlsfbkepeyaao/Build/Products/Debug-iphonesimulator/Alamofire.framework: No such file or directory –  Apr 26 '18 at 06:54
  • **This error return when adding framework in** Embedded Binaries and this framework display with red color. Command /bin/sh failed with exit code 1 error: /Users/rigel/Library/Developer/Xcode/DerivedData/almotest-eskarskhigrggyamlsfbkepeyaao/Build/Products/Debug-iphonesimulator/Alamofire.framework: No such file or directory –  Apr 26 '18 at 07:01
  • Can u share your project? – Catherine Apr 26 '18 at 07:04
  • There is no OLD project. I just create a new project. and install pods using cocoapods. –  Apr 26 '18 at 07:09
  • Shall I send a project with Alamofire installed? – Catherine Apr 26 '18 at 07:10
  • How i can send project to you. –  Apr 26 '18 at 07:56
  • @user9618103 Hi,I am also getting same error.Did you find any solution? – Bhumika Jun 12 '20 at 07:00