Xcode 7 Cannot load base module for AlamoFire 3.x (CocoaPods)

I use Alamofire 3.3 with Xcode 7.1.1 installed with Cocoapods and I have this problem a couple of times:

Cannot load base module for Alamofire

here it is my subfile:

source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! target 'MyProject' do pod 'Alamofire', '~> 3.0' end 

I heard about the same problem with Xcode 6.3 and it helped me solve the problem once by clearing the project, but this time I tried

  • Clear project
  • Pure derived data and cache Xcode
  • update of version 3.1 3.2 and 3.3 Alamofire
  • List item

... and nothing stitches work

Does anyone have the same problems? or any solution?

+5
source share
5 answers

I'm not sure if this will solve it for you, but usually it happens when you try to enable a framework that has not yet been created.

Have you tried Product → Build yet?

+16
source

I think this is a small mistake on installing cocoapods. Try again after cleaning and building. If it still does not work, turn off xcode and try again. It worked on my side.

+1
source

I had the same problem, uninstall pod and install again. It worked for me, hope it will be useful for others.

0
source

For Xcode 9: Once you have installed the Alamofire module.

Step .1 you should open the project by double-clicking your_project_name.xcworkspace.

Step 2. Go to the project settings → Assembly phases → Link to binary files with libraries → Add framework "Alamofire.framework"

Here it is!

Now you can import the module

0
source

Kill Xcode and do a pod update . Open Xcode, clean and create. That should fix it.

0
source

Source: https://habr.com/ru/post/1236985/


All Articles