Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Alamofire via Carthage using XcodeGen #6

Open
wants to merge 1 commit into
base: step-8
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "Alamofire/Alamofire" ~> 4.7
1 change: 1 addition & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "Alamofire/Alamofire" "4.8.0"
4 changes: 3 additions & 1 deletion Project/Targets/XcodeGen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ targets:
platform: iOS
type: application
sources:
- XcodeGen
- XcodeGen
dependencies:
- carthage: Alamofire
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# XcodeGen

### Step 8
We have now added a new Notification Service Extension tarted to the app by simply adding 9 short lines across two `.yml` files.
### Step 9
This step we want to add Alamofire via Carthage as a dependency on the main target.

It is now a lot easier to code review the settings and what the change will bring.
With a **5 line change**, that includes adding the Cartfile, Cartfile.resolved, the change to the `.yml` & adding `import Alamofire` into the `AppDelegate.swift,` we have added a new dependency and it has been linked up correctly and the correct settings and run build phase added.

---

### Next
Please now checkout `step-9`
Please now checkout `step-10`

`git checkout tags/step-9`
`git checkout tags/step-10`

---

Expand Down
1 change: 1 addition & 0 deletions XcodeGen/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import UIKit
import Alamofire
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
Expand Down