Skip to content

Commit 9f554c4

Browse files
committed
Step 3
1 parent ece2226 commit 9f554c4

6 files changed

Lines changed: 61 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ playground.xcworkspace
8787
# Carthage
8888
#
8989
# Add this line if you want to avoid checking in source code from Carthage dependencies.
90-
# Carthage/Checkouts
91-
90+
Carthage/Checkouts
9291
Carthage/Build
9392

9493
# fastlane

Cartfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "Alamofire/Alamofire" ~> 4.7

Cartfile.resolved

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "Alamofire/Alamofire" "4.8.0"

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# XcodeGen
22

3-
### Step 2
4-
For this step we added a new Notification Service Extension to the project using the add target feature of Xcode.
5-
6-
No additional code or files added other than what is added by default and already the pull request (PR) is difficult to parse and reason with.
3+
### Step 3
4+
When adding a [Carthage](https://github.com/Carthage/Carthage#installing-carthage) dependancy often steps are forgotten or not understood. This step adds [Alamofire](https://github.com/Alamofire/Alamofire) via Carthage to the project manually.
75

86
---
97

108
### Next
11-
Please now checkout `step-3`
9+
Please now checkout `step-4`
1210

13-
`git checkout tags/step-3`
11+
`git checkout tags/step-4`
1412

1513
---
1614

XcodeGen.xcodeproj/project.pbxproj

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
8B53916821B4057F00E124A0 /* XcodeGenUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B53916721B4057F00E124A0 /* XcodeGenUITests.swift */; };
1717
8B5391BB21B41ABF00E124A0 /* NotificationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B5391BA21B41ABF00E124A0 /* NotificationService.swift */; };
1818
8B5391BF21B41ABF00E124A0 /* Notification Service Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 8B5391B821B41ABF00E124A0 /* Notification Service Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
19+
8B53938E21B4226D00E124A0 /* Alamofire.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B53938A21B4226D00E124A0 /* Alamofire.framework */; };
1920
/* End PBXBuildFile section */
2021

2122
/* Begin PBXContainerItemProxy section */
@@ -73,13 +74,15 @@
7374
8B5391B821B41ABF00E124A0 /* Notification Service Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Notification Service Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
7475
8B5391BA21B41ABF00E124A0 /* NotificationService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationService.swift; sourceTree = "<group>"; };
7576
8B5391BC21B41ABF00E124A0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
77+
8B53938A21B4226D00E124A0 /* Alamofire.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Alamofire.framework; sourceTree = "<group>"; };
7678
/* End PBXFileReference section */
7779

7880
/* Begin PBXFrameworksBuildPhase section */
7981
8B53914121B4057D00E124A0 /* Frameworks */ = {
8082
isa = PBXFrameworksBuildPhase;
8183
buildActionMask = 2147483647;
8284
files = (
85+
8B53938E21B4226D00E124A0 /* Alamofire.framework in Frameworks */,
8386
);
8487
runOnlyForDeploymentPostprocessing = 0;
8588
};
@@ -110,6 +113,7 @@
110113
8B53913B21B4057D00E124A0 = {
111114
isa = PBXGroup;
112115
children = (
116+
8B5391C521B4222B00E124A0 /* Carthage */,
113117
8B53914621B4057D00E124A0 /* XcodeGen */,
114118
8B53915B21B4057F00E124A0 /* XcodeGenTests */,
115119
8B53916621B4057F00E124A0 /* XcodeGenUITests */,
@@ -169,6 +173,23 @@
169173
path = "Notification Service Extension";
170174
sourceTree = "<group>";
171175
};
176+
8B5391C521B4222B00E124A0 /* Carthage */ = {
177+
isa = PBXGroup;
178+
children = (
179+
8B53938721B4226D00E124A0 /* iOS */,
180+
);
181+
path = Carthage;
182+
sourceTree = "<group>";
183+
};
184+
8B53938721B4226D00E124A0 /* iOS */ = {
185+
isa = PBXGroup;
186+
children = (
187+
8B53938A21B4226D00E124A0 /* Alamofire.framework */,
188+
);
189+
name = iOS;
190+
path = Build/iOS;
191+
sourceTree = "<group>";
192+
};
172193
/* End PBXGroup section */
173194

174195
/* Begin PBXNativeTarget section */
@@ -234,6 +255,7 @@
234255
8B5391B421B41ABF00E124A0 /* Sources */,
235256
8B5391B521B41ABF00E124A0 /* Frameworks */,
236257
8B5391B621B41ABF00E124A0 /* Resources */,
258+
8B53939021B4228A00E124A0 /* Carthage */,
237259
);
238260
buildRules = (
239261
);
@@ -325,6 +347,29 @@
325347
};
326348
/* End PBXResourcesBuildPhase section */
327349

350+
/* Begin PBXShellScriptBuildPhase section */
351+
8B53939021B4228A00E124A0 /* Carthage */ = {
352+
isa = PBXShellScriptBuildPhase;
353+
buildActionMask = 2147483647;
354+
files = (
355+
);
356+
inputFileListPaths = (
357+
);
358+
inputPaths = (
359+
"$(SRCROOT)/Carthage/Build/iOS/Alamofire.framework",
360+
);
361+
name = Carthage;
362+
outputFileListPaths = (
363+
);
364+
outputPaths = (
365+
"$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/Alamofire.framework",
366+
);
367+
runOnlyForDeploymentPostprocessing = 0;
368+
shellPath = /bin/sh;
369+
shellScript = "carthage copy-frameworks\n";
370+
};
371+
/* End PBXShellScriptBuildPhase section */
372+
328373
/* Begin PBXSourcesBuildPhase section */
329374
8B53914021B4057D00E124A0 /* Sources */ = {
330375
isa = PBXSourcesBuildPhase;
@@ -521,6 +566,10 @@
521566
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
522567
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
523568
CODE_SIGN_STYLE = Automatic;
569+
FRAMEWORK_SEARCH_PATHS = (
570+
"$(inherited)",
571+
"$(PROJECT_DIR)/Carthage/Build/iOS",
572+
);
524573
INFOPLIST_FILE = XcodeGen/Info.plist;
525574
LD_RUNPATH_SEARCH_PATHS = (
526575
"$(inherited)",
@@ -539,6 +588,10 @@
539588
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
540589
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
541590
CODE_SIGN_STYLE = Automatic;
591+
FRAMEWORK_SEARCH_PATHS = (
592+
"$(inherited)",
593+
"$(PROJECT_DIR)/Carthage/Build/iOS",
594+
);
542595
INFOPLIST_FILE = XcodeGen/Info.plist;
543596
LD_RUNPATH_SEARCH_PATHS = (
544597
"$(inherited)",

XcodeGen/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import UIKit
10+
import Alamofire
1011

1112
@UIApplicationMain
1213
class AppDelegate: UIResponder, UIApplicationDelegate {

0 commit comments

Comments
 (0)