From 96e6a2fb72d7122cecd744ac811e6824731f42a4 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Wed, 17 Sep 2014 21:14:01 -0700 Subject: [PATCH] Adding more comprehensive installation instructions --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c865a5..5be28e8 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,20 @@ _* Scheduled to coincide with Swift 1.0 release_ ## Installation -_The infrastructure and best practices for distributing Swift libraries is currently in flux during this beta period of the language and Xcode. In the meantime, you can simply add Alamofire as a git submodule, drag the `Alamofire.xcodeproj` file into your Xcode project, and add the framework product as a dependency for your application target. (This is how the example project is structured)_ +_The infrastructure and best practices for distributing Swift libraries is currently in flux during this beta period of the language and Xcode... which is to say, the current installation process kinda sucks. _ + +1. Add Alamofire as a submodule by opening the Terminal, `cd`-ing into your top-level project directory, and entering the following command: + +``` +$ git submodule add https://github.com/Alamofire/Alamofire.git +``` + +2. Open the `Alamofire` folder, and drag `Alamofire.xcodeproj` into the file navigator of your Xcode project. +3. In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar. +4. In the tab bar at the top of that window, open the "Build Phases" panel. +5. Expand the "Link Binary with Libraries" group, and add `Alamofire.framework`. +6. Click on the `+` button at the top left of the panel and select "New Copy Files Phase". Rename this new phase to "Copy Frameworks", set the "Destination" to "Frameworks", and add `Alamofire.framework`. + --- -- GitLab