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.
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.
I've CocoaPods 0.36.4 currently installed on my Mac. When I try importing it, I get Cannot load underlying module for 'Alamofire'.
It seems like its an Xcode bug. One should run the project first before start using the dependencies..
@mohdabdurraafay Thanks for the tip! it works!
@mohdabdurraafay Thanks for the tip! it works!
just Build the project once. Then try it. Works fine for me
Build the project once also works for me. Xcode 7.01.
It works for me Xcode 7.0.1
Worked for me to.
It works. Thanks! (Xcode 7.2.1)
import Alamofire after importing UIKit
Then comment it out, build the project.
Uncomment it.
As Apple says, 'it just works'.. lol :D
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.
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'*

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