Skip to content

Commit 085d7aa

Browse files
Enhance Playground Book error (#149)
* enhance playground book error about extracting modules from Swift package * update project to Xcode 11.4 * update argument parser dependency minor changes
1 parent 8c498d5 commit 085d7aa

27 files changed

+58
-36
lines changed

project/Component/NefSwiftPlayground/Errors/SwiftPlaygroundError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public enum SwiftPlaygroundError: Error {
2323
return "command checkout failed: \(info)"
2424
case .modules(let paths):
2525
let packages = paths.map { $0.filename }.joined(separator: ", ")
26-
return "could not extract any module from packages: \(packages)"
26+
return "could not extract any module from dependencies in your Package.swift: \(packages)"
2727
case .playgroundBook(let info):
2828
return "could not create Playground Book: \(info)"
2929
case .ioError(let info):

project/nef.xcodeproj/project.pbxproj

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
8B51C79723CCC8A4003EE485 /* NefRender.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B51C79523CCC8A4003EE485 /* NefRender.h */; settings = {ATTRIBUTES = (Public, ); }; };
9595
8B51C7A123CCC9CD003EE485 /* Render.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B51C7A023CCC9CD003EE485 /* Render.swift */; };
9696
8B51C7AF23CDCE99003EE485 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B51C7AE23CDCE99003EE485 /* main.swift */; };
97+
8B558DE82431FDB0004B9CAA /* ArgumentParser in Frameworks */ = {isa = PBXBuildFile; productRef = 8B558DE72431FDB0004B9CAA /* ArgumentParser */; };
9798
8B5812492403D69000587211 /* NefClean.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B5812472403D69000587211 /* NefClean.h */; settings = {ATTRIBUTES = (Public, ); }; };
9899
8B5812562403D73700587211 /* CleanEnvironment.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B5812542403D73100587211 /* CleanEnvironment.swift */; };
99100
8B5812572403D73700587211 /* Clean.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B5812512403D6E200587211 /* Clean.swift */; };
@@ -138,7 +139,6 @@
138139
8BA1EF7623D86B2D00B33CD0 /* MacDummyConsole.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BA1EF7523D86B2D00B33CD0 /* MacDummyConsole.swift */; };
139140
8BAF221D23D20A8F00786F2F /* CoreRenderError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BAF221C23D20A8F00786F2F /* CoreRenderError.swift */; };
140141
8BAF221F23D20AFA00786F2F /* CoreEnvironments.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BAF221E23D20AFA00786F2F /* CoreEnvironments.swift */; };
141-
8BB221AA24164B6500FBD31D /* ArgumentParser in Frameworks */ = {isa = PBXBuildFile; productRef = 8BB221A924164B6500FBD31D /* ArgumentParser */; };
142142
8BB7D10D23B0C6AB00C8E6F8 /* Bow in Frameworks */ = {isa = PBXBuildFile; productRef = 8B12C17723B0C2AF000DB61F /* Bow */; };
143143
8BB7D10E23B0C6AB00C8E6F8 /* BowEffects in Frameworks */ = {isa = PBXBuildFile; productRef = 8B12C17923B0C2AF000DB61F /* BowEffects */; };
144144
8BB7D10F23B0C6AB00C8E6F8 /* BowOptics in Frameworks */ = {isa = PBXBuildFile; productRef = 8B12C17B23B0C2AF000DB61F /* BowOptics */; };
@@ -649,7 +649,7 @@
649649
isa = PBXFrameworksBuildPhase;
650650
buildActionMask = 2147483647;
651651
files = (
652-
8BB221AA24164B6500FBD31D /* ArgumentParser in Frameworks */,
652+
8B558DE82431FDB0004B9CAA /* ArgumentParser in Frameworks */,
653653
);
654654
runOnlyForDeploymentPostprocessing = 0;
655655
};
@@ -1685,7 +1685,7 @@
16851685
);
16861686
name = CLIKit;
16871687
packageProductDependencies = (
1688-
8BB221A924164B6500FBD31D /* ArgumentParser */,
1688+
8B558DE72431FDB0004B9CAA /* ArgumentParser */,
16891689
);
16901690
productName = CLI;
16911691
productReference = 8B0FB584237C0A5600221548 /* CLIKit.framework */;
@@ -2080,7 +2080,7 @@
20802080
isa = PBXProject;
20812081
attributes = {
20822082
LastSwiftUpdateCheck = 1130;
2083-
LastUpgradeCheck = 1130;
2083+
LastUpgradeCheck = 1140;
20842084
ORGANIZATIONNAME = "47 Degrees";
20852085
TargetAttributes = {
20862086
8B0286E023E079650033ECBA = {
@@ -2179,7 +2179,7 @@
21792179
packageReferences = (
21802180
8B0FB5A3237C1D3700221548 /* XCRemoteSwiftPackageReference "bow" */,
21812181
8B46C433238FDA3300437659 /* XCRemoteSwiftPackageReference "SwiftLine" */,
2182-
8BB221A824164B6500FBD31D /* XCRemoteSwiftPackageReference "swift-argument-parser" */,
2182+
8B558DE62431FDB0004B9CAA /* XCRemoteSwiftPackageReference "swift-argument-parser" */,
21832183
);
21842184
productRefGroup = 8B6FC586221ECE6A008F7694 /* Products */;
21852185
projectDirPath = "";
@@ -2723,6 +2723,7 @@
27232723
8B0286E623E079650033ECBA /* Debug */ = {
27242724
isa = XCBuildConfiguration;
27252725
buildSettings = {
2726+
CODE_SIGN_IDENTITY = "-";
27262727
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Compiler;
27272728
PRODUCT_NAME = nefc;
27282729
};
@@ -2731,6 +2732,7 @@
27312732
8B0286E723E079650033ECBA /* Release */ = {
27322733
isa = XCBuildConfiguration;
27332734
buildSettings = {
2735+
CODE_SIGN_IDENTITY = "-";
27342736
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Compiler;
27352737
PRODUCT_NAME = nefc;
27362738
};
@@ -2739,6 +2741,7 @@
27392741
8B0A905E23ACD3A400091C39 /* Debug */ = {
27402742
isa = XCBuildConfiguration;
27412743
buildSettings = {
2744+
CODE_SIGN_IDENTITY = "-";
27422745
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Markdown;
27432746
PRODUCT_NAME = "nef-markdown";
27442747
};
@@ -2747,6 +2750,7 @@
27472750
8B0A905F23ACD3A400091C39 /* Release */ = {
27482751
isa = XCBuildConfiguration;
27492752
buildSettings = {
2753+
CODE_SIGN_IDENTITY = "-";
27502754
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Markdown;
27512755
PRODUCT_NAME = "nef-markdown";
27522756
};
@@ -2755,6 +2759,7 @@
27552759
8B0CA51B22AE669600181BC0 /* Debug */ = {
27562760
isa = XCBuildConfiguration;
27572761
buildSettings = {
2762+
CODE_SIGN_IDENTITY = "-";
27582763
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.CarbonPage;
27592764
PRODUCT_NAME = "nef-carbon-page";
27602765
};
@@ -2763,6 +2768,7 @@
27632768
8B0CA51C22AE669600181BC0 /* Release */ = {
27642769
isa = XCBuildConfiguration;
27652770
buildSettings = {
2771+
CODE_SIGN_IDENTITY = "-";
27662772
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.CarbonPage;
27672773
PRODUCT_NAME = "nef-carbon-page";
27682774
};
@@ -2924,6 +2930,7 @@
29242930
8B424B24224E28FC00AF9010 /* Debug */ = {
29252931
isa = XCBuildConfiguration;
29262932
buildSettings = {
2933+
CODE_SIGN_IDENTITY = "-";
29272934
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.MarkdownPage;
29282935
PRODUCT_NAME = "nef-markdown-page";
29292936
};
@@ -2932,6 +2939,7 @@
29322939
8B424B25224E28FC00AF9010 /* Release */ = {
29332940
isa = XCBuildConfiguration;
29342941
buildSettings = {
2942+
CODE_SIGN_IDENTITY = "-";
29352943
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.MarkdownPage;
29362944
PRODUCT_NAME = "nef-markdown-page";
29372945
};
@@ -2940,6 +2948,7 @@
29402948
8B444F1923FED31400975C8C /* Debug */ = {
29412949
isa = XCBuildConfiguration;
29422950
buildSettings = {
2951+
CODE_SIGN_IDENTITY = "-";
29432952
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Nef;
29442953
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
29452954
PRODUCT_NAME = "nef-menu";
@@ -2949,6 +2958,7 @@
29492958
8B444F1A23FED31400975C8C /* Release */ = {
29502959
isa = XCBuildConfiguration;
29512960
buildSettings = {
2961+
CODE_SIGN_IDENTITY = "-";
29522962
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Nef;
29532963
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
29542964
PRODUCT_NAME = "nef-menu";
@@ -3059,6 +3069,7 @@
30593069
8B51C7B123CDCE99003EE485 /* Debug */ = {
30603070
isa = XCBuildConfiguration;
30613071
buildSettings = {
3072+
CODE_SIGN_IDENTITY = "-";
30623073
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Jekyll;
30633074
PRODUCT_NAME = "nef-jekyll";
30643075
};
@@ -3067,6 +3078,7 @@
30673078
8B51C7B223CDCE99003EE485 /* Release */ = {
30683079
isa = XCBuildConfiguration;
30693080
buildSettings = {
3081+
CODE_SIGN_IDENTITY = "-";
30703082
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Jekyll;
30713083
PRODUCT_NAME = "nef-jekyll";
30723084
};
@@ -3123,6 +3135,7 @@
31233135
8B58127D2403DC6C00587211 /* Debug */ = {
31243136
isa = XCBuildConfiguration;
31253137
buildSettings = {
3138+
CODE_SIGN_IDENTITY = "-";
31263139
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Clean;
31273140
PRODUCT_NAME = "nef-clean";
31283141
};
@@ -3131,6 +3144,7 @@
31313144
8B58127E2403DC6C00587211 /* Release */ = {
31323145
isa = XCBuildConfiguration;
31333146
buildSettings = {
3147+
CODE_SIGN_IDENTITY = "-";
31343148
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Clean;
31353149
PRODUCT_NAME = "nef-clean";
31363150
};
@@ -3340,6 +3354,7 @@
33403354
8B6FC58D221ECE6A008F7694 /* Debug */ = {
33413355
isa = XCBuildConfiguration;
33423356
buildSettings = {
3357+
CODE_SIGN_IDENTITY = "-";
33433358
GCC_OPTIMIZATION_LEVEL = 0;
33443359
ONLY_ACTIVE_ARCH = YES;
33453360
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.JekyllPage;
@@ -3351,6 +3366,7 @@
33513366
8B6FC58E221ECE6A008F7694 /* Release */ = {
33523367
isa = XCBuildConfiguration;
33533368
buildSettings = {
3369+
CODE_SIGN_IDENTITY = "-";
33543370
GCC_OPTIMIZATION_LEVEL = 0;
33553371
ONLY_ACTIVE_ARCH = YES;
33563372
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.JekyllPage;
@@ -3362,6 +3378,7 @@
33623378
8B7E808723DB4C5800D4F6BD /* Debug */ = {
33633379
isa = XCBuildConfiguration;
33643380
buildSettings = {
3381+
CODE_SIGN_IDENTITY = "-";
33653382
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Carbon;
33663383
PRODUCT_MODULE_NAME = nef_carbon;
33673384
PRODUCT_NAME = "nef-carbon";
@@ -3371,6 +3388,7 @@
33713388
8B7E808823DB4C5800D4F6BD /* Release */ = {
33723389
isa = XCBuildConfiguration;
33733390
buildSettings = {
3391+
CODE_SIGN_IDENTITY = "-";
33743392
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Carbon;
33753393
PRODUCT_MODULE_NAME = nef_carbon;
33763394
PRODUCT_NAME = "nef-carbon";
@@ -3428,6 +3446,7 @@
34283446
8BD4E30F238814B1002DECDB /* Debug */ = {
34293447
isa = XCBuildConfiguration;
34303448
buildSettings = {
3449+
CODE_SIGN_IDENTITY = "-";
34313450
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.SwiftPlayground;
34323451
PRODUCT_NAME = "nef-playground-book";
34333452
};
@@ -3436,6 +3455,7 @@
34363455
8BD4E310238814B1002DECDB /* Release */ = {
34373456
isa = XCBuildConfiguration;
34383457
buildSettings = {
3458+
CODE_SIGN_IDENTITY = "-";
34393459
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.SwiftPlayground;
34403460
PRODUCT_NAME = "nef-playground-book";
34413461
};
@@ -3543,6 +3563,7 @@
35433563
8BD6975F23F6D6A7000A512F /* Debug */ = {
35443564
isa = XCBuildConfiguration;
35453565
buildSettings = {
3566+
CODE_SIGN_IDENTITY = "-";
35463567
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Playground;
35473568
PRODUCT_NAME = "nef-playground";
35483569
};
@@ -3551,6 +3572,7 @@
35513572
8BD6976023F6D6A7000A512F /* Release */ = {
35523573
isa = XCBuildConfiguration;
35533574
buildSettings = {
3575+
CODE_SIGN_IDENTITY = "-";
35543576
PRODUCT_BUNDLE_IDENTIFIER = com.fortysevendegrees.Playground;
35553577
PRODUCT_NAME = "nef-playground";
35563578
};
@@ -3966,12 +3988,12 @@
39663988
minimumVersion = 0.5.4;
39673989
};
39683990
};
3969-
8BB221A824164B6500FBD31D /* XCRemoteSwiftPackageReference "swift-argument-parser" */ = {
3991+
8B558DE62431FDB0004B9CAA /* XCRemoteSwiftPackageReference "swift-argument-parser" */ = {
39703992
isa = XCRemoteSwiftPackageReference;
3971-
repositoryURL = "https://github.com/miguelangel-dev/swift-argument-parser.git";
3993+
repositoryURL = "https://github.com/apple/swift-argument-parser.git";
39723994
requirement = {
39733995
kind = upToNextMajorVersion;
3974-
minimumVersion = 0.0.1;
3996+
minimumVersion = 0.0.4;
39753997
};
39763998
};
39773999
/* End XCRemoteSwiftPackageReference section */
@@ -4007,9 +4029,9 @@
40074029
package = 8B46C433238FDA3300437659 /* XCRemoteSwiftPackageReference "SwiftLine" */;
40084030
productName = Swiftline;
40094031
};
4010-
8BB221A924164B6500FBD31D /* ArgumentParser */ = {
4032+
8B558DE72431FDB0004B9CAA /* ArgumentParser */ = {
40114033
isa = XCSwiftPackageProductDependency;
4012-
package = 8BB221A824164B6500FBD31D /* XCRemoteSwiftPackageReference "swift-argument-parser" */;
4034+
package = 8B558DE62431FDB0004B9CAA /* XCRemoteSwiftPackageReference "swift-argument-parser" */;
40134035
productName = ArgumentParser;
40144036
};
40154037
8BBCA6952396A59600BE058B /* Bow */ = {

project/nef.xcodeproj/xcshareddata/xcschemes/CLIKit.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

project/nef.xcodeproj/xcshareddata/xcschemes/Carbon.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

project/nef.xcodeproj/xcshareddata/xcschemes/CarbonPage.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

project/nef.xcodeproj/xcshareddata/xcschemes/Clean.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

project/nef.xcodeproj/xcshareddata/xcschemes/Compiler.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

project/nef.xcodeproj/xcshareddata/xcschemes/CoreTests.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

project/nef.xcodeproj/xcshareddata/xcschemes/Jekyll.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

project/nef.xcodeproj/xcshareddata/xcschemes/JekyllPage.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)