Unable to load base module for "Alamofire"

Here is the original github issue , sugested support to open the thread here for more public support.

I am using xcode 6.4.

$ pod --version 0.38.2 

My subfile:

 platform :ios, '8.0' use_frameworks! target 'Turnt' do pod 'Starscream' pod 'Alamofire', '~> 1.3' end 
+8
alamofire
source share
6 answers

I also met a similar problem. I could not understand why, and soon I lost my patience, so I simply ignored the error and pressed "run" directly. The error disappeared and "Build Succeeded" was displayed.

+25
source share

There are several other things you can try:

Check xcodebuild version

Make sure your xcodebuild version xcodebuild also set to 6.4 .

xcodebuild settings

clear all

You probably want to try clean all in the project. Sometimes this is a reset problem.

Clear DerivedData and Xcode Cache Data

Another thing that might cause the problem is that you may need to erase your DerivedData folder along with the Xcode cache.

 echo "Removing DerivedData and Xcode Cache" rm -rf ~/Library/Developer/Xcode/DerivedData rm -rf ~/Library/Caches/com.apple.dt.Xcode 

Give them a whirlwind and I will update the answer accordingly. Good luck

+8
source share

I met the same question and Product-> clean then Product-> build fixed it

+3
source share

This issue has already been reported on Github: https://github.com/Alamofire/Alamofire/issues/441

Follow these steps

  • Product β†’ Cleaning
  • Restart xcode
  • Restore project
  • Keychain Access May Allowed

Good luck and happy coding

+1
source share

The fix for me changed the platform version in my Podfile to the same version as in Xcode. Then run pod install again. Derp.

Example: platform :ios, '11.2'

+1
source share

This is an Xcode bug with Alamofire. Just keep rebuilding the application and clean it. After this restart, Xcode and the problem should disappear. Hope this helps,

0
source share

All Articles