Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Alamofire as a framework and commiting it to Git #122

Closed
Isuru-Nanayakkara opened this Issue Sep 24, 2014 · 13 comments

Comments

Projects
None yet
@Isuru-Nanayakkara
Copy link

Isuru-Nanayakkara commented Sep 24, 2014

I have a project which uses Alamofire. What I usually do it, I checkout a copy of my source, drag and drop Alamofire project from wherever I have downloaded it. Add it to Target Dependencies and work with it.

This is an unnecessary task which I'm trying to stop. So what I need is to add Alamofire to my project for good so that I can check in my source along with it.

If I copy the entire Alamofire folder, I get all the iOS example projects and workspaces and everything. Besides if I add the entire directory, I get this build error /Cannot load underlying module for 'XCTest'.

Can someone please tell me what are the necessary files of Alamofire I need to copy over to my project and check in to git source control in order to not having to drag and drop every time?

Thank you.

@mattt

This comment has been minimized.

Copy link
Contributor

mattt commented Sep 24, 2014

Installation instructions (until CocoaPods supports Swift) are provided in the README. The only required file is Alamofire.swift. If there's any mention of XCTest, you're loading or linking against the testing target somehow.

@mattt mattt closed this Sep 24, 2014

@mohdabdurraafay

This comment has been minimized.

Copy link

mohdabdurraafay commented May 2, 2015

I've CocoaPods 0.36.4 currently installed on my Mac. When I try importing it, I get Cannot load underlying module for 'Alamofire'.

@mohdabdurraafay

This comment has been minimized.

Copy link

mohdabdurraafay commented May 2, 2015

It seems like its an Xcode bug. One should run the project first before start using the dependencies..

@nsbraksa

This comment has been minimized.

Copy link

nsbraksa commented May 5, 2015

@mohdabdurraafay Thanks for the tip! it works!

@difficultashish

This comment has been minimized.

Copy link

difficultashish commented Aug 18, 2015

@mohdabdurraafay Thanks for the tip! it works!

@karthikAdaptavant

This comment has been minimized.

Copy link

karthikAdaptavant commented Aug 25, 2015

just Build the project once. Then try it. Works fine for me

@shaopengw

This comment has been minimized.

Copy link

shaopengw commented Oct 19, 2015

Build the project once also works for me. Xcode 7.01.

@shooding

This comment has been minimized.

Copy link

shooding commented Oct 20, 2015

It works for me Xcode 7.0.1

@GABHISEKBUNTY

This comment has been minimized.

Copy link

GABHISEKBUNTY commented Dec 26, 2015

Worked for me to.

@leoniralves

This comment has been minimized.

Copy link

leoniralves commented Mar 12, 2016

It works. Thanks! (Xcode 7.2.1)

@sayonsom

This comment has been minimized.

Copy link

sayonsom commented Mar 17, 2016

import Alamofire after importing UIKit
Then comment it out, build the project.
Uncomment it.

As Apple says, 'it just works'.. lol :D

@ryan-luas

This comment has been minimized.

Copy link

ryan-luas commented Mar 17, 2016

I'm not sure of your setup, however that underlying module error is usually because you have swift and objc code in the project and in this case, Alamofire should be added to the embedded binaries section when linking libs.

@1ckola

This comment has been minimized.

Copy link

1ckola commented May 4, 2016

Instead of adding all xcode project for my iOS application project, I am trying to add the attached file thru Link Binary with Libraries to my project, started getting * No such module 'Alamofire'*
alamofire_framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.