Update README.md

This commit is contained in:
Jungpyo Hong 2021-06-11 16:12:11 -05:00 committed by GitHub
parent bd5be0eaaa
commit ad85373f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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