Skip to content

Commit b84d0f2

Browse files
committed
Step 3
1 parent ece2226 commit b84d0f2

File tree

6 files changed

+74
-8
lines changed

6 files changed

+74
-8
lines changed

.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: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
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+
8B59760921B42BA5000554EF /* Alamofire.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B53938A21B4226D00E124A0 /* Alamofire.framework */; };
20+
8B59760A21B42BA5000554EF /* Alamofire.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8B53938A21B4226D00E124A0 /* Alamofire.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1921
/* End PBXBuildFile section */
2022

2123
/* Begin PBXContainerItemProxy section */
@@ -54,6 +56,17 @@
5456
name = "Embed App Extensions";
5557
runOnlyForDeploymentPostprocessing = 0;
5658
};
59+
8B59760B21B42BA5000554EF /* Embed Frameworks */ = {
60+
isa = PBXCopyFilesBuildPhase;
61+
buildActionMask = 2147483647;
62+
dstPath = "";
63+
dstSubfolderSpec = 10;
64+
files = (
65+
8B59760A21B42BA5000554EF /* Alamofire.framework in Embed Frameworks */,
66+
);
67+
name = "Embed Frameworks";
68+
runOnlyForDeploymentPostprocessing = 0;
69+
};
5770
/* End PBXCopyFilesBuildPhase section */
5871

5972
/* Begin PBXFileReference section */
@@ -73,13 +86,15 @@
7386
8B5391B821B41ABF00E124A0 /* Notification Service Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Notification Service Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
7487
8B5391BA21B41ABF00E124A0 /* NotificationService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationService.swift; sourceTree = "<group>"; };
7588
8B5391BC21B41ABF00E124A0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
89+
8B53938A21B4226D00E124A0 /* Alamofire.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Alamofire.framework; sourceTree = "<group>"; };
7690
/* End PBXFileReference section */
7791

7892
/* Begin PBXFrameworksBuildPhase section */
7993
8B53914121B4057D00E124A0 /* Frameworks */ = {
8094
isa = PBXFrameworksBuildPhase;
8195
buildActionMask = 2147483647;
8296
files = (
97+
8B59760921B42BA5000554EF /* Alamofire.framework in Frameworks */,
8398
);
8499
runOnlyForDeploymentPostprocessing = 0;
85100
};
@@ -110,6 +125,7 @@
110125
8B53913B21B4057D00E124A0 = {
111126
isa = PBXGroup;
112127
children = (
128+
8B5391C521B4222B00E124A0 /* Carthage */,
113129
8B53914621B4057D00E124A0 /* XcodeGen */,
114130
8B53915B21B4057F00E124A0 /* XcodeGenTests */,
115131
8B53916621B4057F00E124A0 /* XcodeGenUITests */,
@@ -169,6 +185,23 @@
169185
path = "Notification Service Extension";
170186
sourceTree = "<group>";
171187
};
188+
8B5391C521B4222B00E124A0 /* Carthage */ = {
189+
isa = PBXGroup;
190+
children = (
191+
8B53938721B4226D00E124A0 /* iOS */,
192+
);
193+
path = Carthage;
194+
sourceTree = "<group>";
195+
};
196+
8B53938721B4226D00E124A0 /* iOS */ = {
197+
isa = PBXGroup;
198+
children = (
199+
8B53938A21B4226D00E124A0 /* Alamofire.framework */,
200+
);
201+
name = iOS;
202+
path = Build/iOS;
203+
sourceTree = "<group>";
204+
};
172205
/* End PBXGroup section */
173206

174207
/* Begin PBXNativeTarget section */
@@ -180,6 +213,7 @@
180213
8B53914121B4057D00E124A0 /* Frameworks */,
181214
8B53914221B4057D00E124A0 /* Resources */,
182215
8B5391C321B41ABF00E124A0 /* Embed App Extensions */,
216+
8B59760B21B42BA5000554EF /* Embed Frameworks */,
183217
);
184218
buildRules = (
185219
);
@@ -234,6 +268,7 @@
234268
8B5391B421B41ABF00E124A0 /* Sources */,
235269
8B5391B521B41ABF00E124A0 /* Frameworks */,
236270
8B5391B621B41ABF00E124A0 /* Resources */,
271+
8B53939021B4228A00E124A0 /* Carthage */,
237272
);
238273
buildRules = (
239274
);
@@ -325,6 +360,29 @@
325360
};
326361
/* End PBXResourcesBuildPhase section */
327362

363+
/* Begin PBXShellScriptBuildPhase section */
364+
8B53939021B4228A00E124A0 /* Carthage */ = {
365+
isa = PBXShellScriptBuildPhase;
366+
buildActionMask = 2147483647;
367+
files = (
368+
);
369+
inputFileListPaths = (
370+
);
371+
inputPaths = (
372+
"$(SRCROOT)/Carthage/Build/iOS/Alamofire.framework",
373+
);
374+
name = Carthage;
375+
outputFileListPaths = (
376+
);
377+
outputPaths = (
378+
"$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/Alamofire.framework",
379+
);
380+
runOnlyForDeploymentPostprocessing = 0;
381+
shellPath = /bin/sh;
382+
shellScript = "carthage copy-frameworks\n";
383+
};
384+
/* End PBXShellScriptBuildPhase section */
385+
328386
/* Begin PBXSourcesBuildPhase section */
329387
8B53914021B4057D00E124A0 /* Sources */ = {
330388
isa = PBXSourcesBuildPhase;
@@ -521,6 +579,10 @@
521579
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
522580
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
523581
CODE_SIGN_STYLE = Automatic;
582+
FRAMEWORK_SEARCH_PATHS = (
583+
"$(inherited)",
584+
"$(PROJECT_DIR)/Carthage/Build/iOS",
585+
);
524586
INFOPLIST_FILE = XcodeGen/Info.plist;
525587
LD_RUNPATH_SEARCH_PATHS = (
526588
"$(inherited)",
@@ -539,6 +601,10 @@
539601
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
540602
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
541603
CODE_SIGN_STYLE = Automatic;
604+
FRAMEWORK_SEARCH_PATHS = (
605+
"$(inherited)",
606+
"$(PROJECT_DIR)/Carthage/Build/iOS",
607+
);
542608
INFOPLIST_FILE = XcodeGen/Info.plist;
543609
LD_RUNPATH_SEARCH_PATHS = (
544610
"$(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)