If you prefer either of the aforementioned dependency managers, you can integrate Alamofire into your project M Anually.
Embedded Framework
- Open up Terminal, into
cd
your top-level project directory, and run the following command "If" your project was not init Ialized as a git repository:
$ git init
- Add Alamofire as a git submodule by running the following command:
$ git submodule add https://github.com/Alamofire/Alamofire.git
Open the new Alamofire
folder, and drag the into the Alamofire.xcodeproj
project Navigator of your application ' s Xcode project.
It should appear nested underneath your application ' s Blue Project icon. Whether it is above or below all of the other Xcode groups does not matter.
Select the In the Alamofire.xcodeproj
Project Navigator and verify the deployment target matches that of your application target.
- Next, select your application project in the Project Navigator (blue Project icon) to navigate to the target configuration window and select the application target under the "Targets" heading in the sidebar.
- In the tab bar at the top of that window, open the ' General ' panel.
- Click on
+
the button under the ' Embedded Binaries ' section.
You'll see both different Alamofire.xcodeproj
folders each with a different versions of the Alamofire.framework
nested inside a Products
folder.
It does not matter which Products
folder choose from, but it does matter whether you choose the top or bottom Alamofire.framework
.
Select the top for IOS and the bottom one for Alamofire.framework
OS x.
You can verify which one to selected by inspecting the build log for your project. The build target for would be Alamofire
listed as either Alamofire iOS
or Alamofire OSX
.
And that ' s it!
Alamofire.framework
the is automagically added as a target dependency, linked framework and embedded framework in a copy files build Pha Se which is all you need to build on the simulator and a device.
[Reveal] Join the project