Skip to content

Cannot load underlying module for 'Alamofire' #441

@n2b8

Description

@n2b8

Unable to successfully use/import Alamofire. Xcode 6.3 with a clean project and cocoapods install.
screen shot 2015-04-21 at 2 40 00 am

Activity

mattt

mattt commented on Apr 21, 2015

@mattt
SponsorContributor

Cannot reproduce. Try cleaning your project or re-installing from CocoaPods.

If you continue to experience problems and think that this might be an issue with CocoaPods, please open an issue with them. Otherwise, please ask a question on Stack Overflow with the "Alamofire" tag.

n2b8

n2b8 commented on Apr 21, 2015

@n2b8
Author

Clean did not work, re-installing from pods did not work, installing from carthage did not work, manual install did not work. I finally got it to work after Build for Testing.

cnoon

cnoon commented on Apr 21, 2015

@cnoon
Member

Hi @n2b8,

This is working properly for the majority of us. Here's a few tips that maybe will help. Otherwise please open a ticket on StackOverflow and we can further assist there. That will also give the question and answer more visibility to the rest of the community.

Xcode Version

screen shot 2015-04-21 at 8 02 09 am

CocoaPods Version

cnoon:~$ pod --version
0.36.4

Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'Alamofire', '~> 1.2'

Import Alamofire in New Project

screen shot 2015-04-21 at 8 03 13 am

Build Project

screen shot 2015-04-21 at 8 03 30 am


If none of these end up solving your issue, then please open a question on StackOverflow and post a link to the question here. I'll continue to help you debug the issue further if necessary.

Cheers.

thunderkid

thunderkid commented on Apr 27, 2015

@thunderkid

I had the same problem after installing from cocoapods.
Choosing Product | Clean then Product | Build fixed it.

sundraw

sundraw commented on May 29, 2015

@sundraw

Had the same problem after installing from cocoapods. Product/Clean didn't help. Shutting down Xcode and reopening the workspace did help.

samyro

samyro commented on Jun 1, 2015

@samyro

I also have that issue. It wouldn't affect build the project but very annoying. And I think it only happens when you use cocoapod to add Alamofire to the existing project which is not init with cocoapod.

Struki84

Struki84 commented on Jul 28, 2015

@Struki84

None of the above helped, opened Stack Overflow issue as recomended.
http://stackoverflow.com/questions/31674885/cannot-load-underlying-module-for-alamofire

pori

pori commented on Aug 1, 2015

@pori

This solved it for me:

#122

Struki84

Struki84 commented on Sep 29, 2015

@Struki84

Follow up: Updating to xcode 7.0 and #122, solved it for me.

felipeumpierre

felipeumpierre commented on Oct 16, 2015

@felipeumpierre

Xcode 7.0.1 and #122 solved for me as well.

mikeendale

mikeendale commented on Oct 24, 2015

@mikeendale

Xcode 7.1 and #122 solved it for me as well.

All I had to do was comment out the import Alamofire and run the app; then uncomment it.

18 remaining items

ccastera

ccastera commented on May 30, 2016

@ccastera

i faced that issue, and i solved it by manually add the alamofire framework into to project

thuutien

thuutien commented on Jun 2, 2016

@thuutien

i get this issue today. No way to use this framwork on my project?

Simeon-O

Simeon-O commented on Aug 15, 2016

@Simeon-O

adding my team worked for me!

ghost
newmanw

newmanw commented on Sep 28, 2016

@newmanw

Same issue for me with AF 3.1.0 and XCode 8

sn

sn commented on Oct 31, 2016

@sn

Same issue:
Xcode 8.1 (8B62)
Cocoapods: 1.1.1

devbuds

devbuds commented on Nov 1, 2016

@devbuds

It successfully solved my issue by following the instructions at
http://stackoverflow.com/a/40360050/1804274

ardee19

ardee19 commented on Nov 7, 2016

@ardee19

I didn't reinstall the pod but just running the app with the error on import, no other calls to alamofire. It run and removed the error: Cannot load underlying module for 'Alamofire'

martianmartian

martianmartian commented on Oct 11, 2017

@martianmartian

why@#!@$!$#@$@!#@

Paydayzcool

Paydayzcool commented on Oct 18, 2017

@Paydayzcool

Ok, I managed to get rid of the error by running the app without writing import Alamofire, then writing it.

ghost
kadze

kadze commented on Oct 30, 2017

@kadze

I have just tried the Carthage. Everything works for me. "just works". Carthage does not change your project. I didn't know that before.

jafara

jafara commented on Apr 19, 2018

@jafara

Carthage does not work for me, CocoaPods did. thanks everyone for suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mattt@jshier@sn@cnoon@mikeendale

        Issue actions

          Cannot load underlying module for 'Alamofire' · Issue #441 · Alamofire/Alamofire