mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2024-12-22 22:35:28 +07:00
Update README.md
This commit is contained in:
parent
bd5be0eaaa
commit
ad85373f5c
39
README.md
39
README.md
@ -932,15 +932,50 @@ $ pod install
|
||||
|
||||
## Carthage
|
||||
|
||||
- [Getting started with Carthage to manage dependencies in Swift and iOS](https://www.twilio.com/blog/2016/05/getting-started-with-carthage-to-manage-dependencies-in-swift-and-ios.html)
|
||||
- [Carthage Tutorial: Getting Started](https://www.raywenderlich.com/7649117-carthage-tutorial-getting-started)
|
||||
|
||||
First, install Carthage through HomeBrew
|
||||
|
||||
```bash
|
||||
$ brew install carthage
|
||||
```
|
||||
|
||||
|
||||
if already installed, check if there is latest version.
|
||||
|
||||
```bash
|
||||
$ carthage update
|
||||
```
|
||||
|
||||
|
||||
Then, go to your root project folder, and do this
|
||||
|
||||
```bash
|
||||
touch Cartfile
|
||||
```
|
||||
|
||||
open cartfile, put library that you want to use
|
||||
|
||||
```bash
|
||||
github "<owner>/<repo>" == <version>
|
||||
```
|
||||
|
||||
Example
|
||||
|
||||
```bash
|
||||
github "Alamofire/Alamofire" == 4.9.0
|
||||
github "Alamofire/AlamofireImage" ~> 3.4
|
||||
```
|
||||
|
||||
And then, do this
|
||||
|
||||
```bash
|
||||
carthage update --platform iOS
|
||||
```
|
||||
|
||||
After finish downloading it, go to **Xcode -> Build phases**
|
||||
|
||||
TBD
|
||||
|
||||
**You are GOOD TO GO** 👏👏👏
|
||||
|
||||
## Swift Package Manager
|
||||
|
Loading…
Reference in New Issue
Block a user