Paul Aigueperse
Paul Aigueperse

Reputation: 299

Xcode 7 Cannot load underlying 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 time :

Cannot load underlying module for Alamofire

here it's my Podfile :

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 to solve the problem once by cleaning project, but this time, I tryed to

... and nothing seams to work

does someone have the same troubles ? or any solution ?

Upvotes: 5

Views: 5118

Answers (5)

S E
S E

Reputation: 435

Kill Xcode and do pod update. Open Xcode, clean and build. This should fix it.

Upvotes: 0

Ajay Reddy
Ajay Reddy

Reputation: 1493

For Xcode 9: Once you have installed Alamofire pod.

Step.1 you should open your project by double click on your_project_name.xcworkspace file.

Step.2 Go to project settings --> Build Phases --> Link Binary with Libraries --> Add framework "Alamofire.framework"

Thats it!!

Now you can import the module

Upvotes: 0

Varsha
Varsha

Reputation: 1

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

Upvotes: 0

Trần Thị Diệu My
Trần Thị Diệu My

Reputation: 1423

I think it is small bug on cocoapods install Please try again after clean and build if still not working, turn off xcode and try again it worked on my side

Upvotes: 0

Alex Catchpole
Alex Catchpole

Reputation: 7336

I'm not sure if this will solve it for you but usually this occurs when you are trying to include a framework that hasn't been built yet.

Have you tried Product -> Build yet?

Upvotes: 16

Related Questions