提交 96e6a2fb 编写于 作者: M Mattt Thompson

Adding more comprehensive installation instructions

上级 cb7dde5b
......@@ -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`.
---
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册