Skip to content

Commit 92c419e

Browse files
authored
Merge pull request #165 from AWSary/codex/fix-ci-error-for-awsary-scheme
Add iOS unit test target to scheme
2 parents 07fa160 + 74249c7 commit 92c419e

File tree

3 files changed

+168
-0
lines changed

3 files changed

+168
-0
lines changed

ios/AWSaryTests/AWSaryTests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import XCTest
2+
3+
final class AWSaryTests: XCTestCase {
4+
func testExample() {
5+
XCTAssertTrue(true)
6+
}
7+
}

ios/awsary.xcodeproj/project.pbxproj

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595
EEE7348F2889A72000718ACC /* YouTubePlayerKit in Frameworks */ = {isa = PBXBuildFile; productRef = EEE7348E2889A72000718ACC /* YouTubePlayerKit */; };
9696
EEE8414228820E3B0062238E /* awsService.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEE8414128820E3B0062238E /* awsService.swift */; };
9797
EEE8414328820E3B0062238E /* awsService.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEE8414128820E3B0062238E /* awsService.swift */; };
98+
EEA1A1002E5F000100AAA001 /* AWSaryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEA1A1032E5F000100AAA001 /* AWSaryTests.swift */; };
99+
EEA1A1012E5F000100AAA001 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EEA1A1052E5F000100AAA001 /* XCTest.framework */; };
98100
/* End PBXBuildFile section */
99101

100102
/* Begin PBXContainerItemProxy section */
@@ -105,6 +107,13 @@
105107
remoteGlobalIDString = EE4D8D8F2B9C5BC600A96E5C;
106108
remoteInfo = AWSaryAppClip;
107109
};
110+
EEA1A1022E5F000100AAA001 /* PBXContainerItemProxy */ = {
111+
isa = PBXContainerItemProxy;
112+
containerPortal = EE00841E28820C8B003BA190 /* Project object */;
113+
proxyType = 1;
114+
remoteGlobalIDString = EE00842928820C8C003BA190;
115+
remoteInfo = "awsary (iOS)";
116+
};
108117
/* End PBXContainerItemProxy section */
109118

110119
/* Begin PBXCopyFilesBuildPhase section */
@@ -163,6 +172,9 @@
163172
EECFBC8F28883E6A00FFDB49 /* AboutView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AboutView.swift; sourceTree = "<group>"; };
164173
EEE0804F2885A4C000F8F7A4 /* DetailsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailsView.swift; sourceTree = "<group>"; };
165174
EEE8414128820E3B0062238E /* awsService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = awsService.swift; sourceTree = "<group>"; };
175+
EEA1A1032E5F000100AAA001 /* AWSaryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AWSaryTests.swift; sourceTree = "<group>"; };
176+
EEA1A1042E5F000100AAA001 /* AWSaryTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AWSaryTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
177+
EEA1A1052E5F000100AAA001 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = System/Library/Frameworks/XCTest.framework; sourceTree = SDKROOT; };
166178
/* End PBXFileReference section */
167179

168180
/* Begin PBXFrameworksBuildPhase section */
@@ -198,13 +210,22 @@
198210
);
199211
runOnlyForDeploymentPostprocessing = 0;
200212
};
213+
EEA1A1062E5F000100AAA001 /* Frameworks */ = {
214+
isa = PBXFrameworksBuildPhase;
215+
buildActionMask = 2147483647;
216+
files = (
217+
EEA1A1012E5F000100AAA001 /* XCTest.framework in Frameworks */,
218+
);
219+
runOnlyForDeploymentPostprocessing = 0;
220+
};
201221
/* End PBXFrameworksBuildPhase section */
202222

203223
/* Begin PBXGroup section */
204224
EE00841D28820C8B003BA190 = {
205225
isa = PBXGroup;
206226
children = (
207227
EE6ABDC12C5B9A7C0025B74B /* AWSary */,
228+
EEA1A1072E5F000100AAA001 /* AWSaryTests */,
208229
EE00842228820C8B003BA190 /* Shared */,
209230
EE4D8D912B9C5BC600A96E5C /* AWSaryAppClip */,
210231
EE00842B28820C8C003BA190 /* Products */,
@@ -231,10 +252,19 @@
231252
EE00842A28820C8C003BA190 /* AWSary.app */,
232253
EE00843028820C8C003BA190 /* awsary.app */,
233254
EE4D8D902B9C5BC600A96E5C /* AWSaryAppClip.app */,
255+
EEA1A1042E5F000100AAA001 /* AWSaryTests.xctest */,
234256
);
235257
name = Products;
236258
sourceTree = "<group>";
237259
};
260+
EEA1A1072E5F000100AAA001 /* AWSaryTests */ = {
261+
isa = PBXGroup;
262+
children = (
263+
EEA1A1032E5F000100AAA001 /* AWSaryTests.swift */,
264+
);
265+
path = AWSaryTests;
266+
sourceTree = "<group>";
267+
};
238268
EE00CBBE29630BB300FE3DCB /* MainViews */ = {
239269
isa = PBXGroup;
240270
children = (
@@ -380,6 +410,7 @@
380410
isa = PBXGroup;
381411
children = (
382412
EEB93EC42A7AFCC300373D29 /* StoreKit.framework */,
413+
EEA1A1052E5F000100AAA001 /* XCTest.framework */,
383414
);
384415
name = Frameworks;
385416
sourceTree = "<group>";
@@ -412,6 +443,24 @@
412443
productReference = EE00842A28820C8C003BA190 /* AWSary.app */;
413444
productType = "com.apple.product-type.application";
414445
};
446+
EEA1A1082E5F000100AAA001 /* AWSaryTests */ = {
447+
isa = PBXNativeTarget;
448+
buildConfigurationList = EEA1A10E2E5F000100AAA001 /* Build configuration list for PBXNativeTarget "AWSaryTests" */;
449+
buildPhases = (
450+
EEA1A10A2E5F000100AAA001 /* Sources */,
451+
EEA1A1062E5F000100AAA001 /* Frameworks */,
452+
EEA1A1092E5F000100AAA001 /* Resources */,
453+
);
454+
buildRules = (
455+
);
456+
dependencies = (
457+
EEA1A10B2E5F000100AAA001 /* PBXTargetDependency */,
458+
);
459+
name = AWSaryTests;
460+
productName = AWSaryTests;
461+
productReference = EEA1A1042E5F000100AAA001 /* AWSaryTests.xctest */;
462+
productType = "com.apple.product-type.bundle.unit-test";
463+
};
415464
EE00842F28820C8C003BA190 /* awsary (macOS) */ = {
416465
isa = PBXNativeTarget;
417466
buildConfigurationList = EE00843E28820C8C003BA190 /* Build configuration list for PBXNativeTarget "awsary (macOS)" */;
@@ -465,6 +514,9 @@
465514
EE00842928820C8C003BA190 = {
466515
CreatedOnToolsVersion = 13.4.1;
467516
};
517+
EEA1A1082E5F000100AAA001 = {
518+
CreatedOnToolsVersion = 16.4;
519+
};
468520
EE00842F28820C8C003BA190 = {
469521
CreatedOnToolsVersion = 13.4.1;
470522
};
@@ -492,6 +544,7 @@
492544
projectRoot = "";
493545
targets = (
494546
EE00842928820C8C003BA190 /* awsary (iOS) */,
547+
EEA1A1082E5F000100AAA001 /* AWSaryTests */,
495548
EE00842F28820C8C003BA190 /* awsary (macOS) */,
496549
EE4D8D8F2B9C5BC600A96E5C /* AWSaryAppClip */,
497550
);
@@ -531,6 +584,13 @@
531584
);
532585
runOnlyForDeploymentPostprocessing = 0;
533586
};
587+
EEA1A1092E5F000100AAA001 /* Resources */ = {
588+
isa = PBXResourcesBuildPhase;
589+
buildActionMask = 2147483647;
590+
files = (
591+
);
592+
runOnlyForDeploymentPostprocessing = 0;
593+
};
534594
/* End PBXResourcesBuildPhase section */
535595

536596

@@ -565,6 +625,14 @@
565625
);
566626
runOnlyForDeploymentPostprocessing = 0;
567627
};
628+
EEA1A10A2E5F000100AAA001 /* Sources */ = {
629+
isa = PBXSourcesBuildPhase;
630+
buildActionMask = 2147483647;
631+
files = (
632+
EEA1A1002E5F000100AAA001 /* AWSaryTests.swift in Sources */,
633+
);
634+
runOnlyForDeploymentPostprocessing = 0;
635+
};
568636
EE00842C28820C8C003BA190 /* Sources */ = {
569637
isa = PBXSourcesBuildPhase;
570638
buildActionMask = 2147483647;
@@ -629,6 +697,11 @@
629697
target = EE4D8D8F2B9C5BC600A96E5C /* AWSaryAppClip */;
630698
targetProxy = EE4D8D9D2B9C5BC800A96E5C /* PBXContainerItemProxy */;
631699
};
700+
EEA1A10B2E5F000100AAA001 /* PBXTargetDependency */ = {
701+
isa = PBXTargetDependency;
702+
target = EE00842928820C8C003BA190 /* awsary (iOS) */;
703+
targetProxy = EEA1A1022E5F000100AAA001 /* PBXContainerItemProxy */;
704+
};
632705
/* End PBXTargetDependency section */
633706

634707
/* Begin XCBuildConfiguration section */
@@ -826,6 +899,50 @@
826899
};
827900
name = Release;
828901
};
902+
EEA1A10C2E5F000100AAA001 /* Debug */ = {
903+
isa = XCBuildConfiguration;
904+
buildSettings = {
905+
BUNDLE_LOADER = "$(TEST_HOST)";
906+
CODE_SIGN_STYLE = Automatic;
907+
DEVELOPMENT_TEAM = "";
908+
GENERATE_INFOPLIST_FILE = YES;
909+
INFOPLIST_KEY_CFBundleDisplayName = AWSaryTests;
910+
LD_RUNPATH_SEARCH_PATHS = (
911+
"$(inherited)",
912+
"@executable_path/Frameworks",
913+
"@loader_path/Frameworks",
914+
);
915+
PRODUCT_BUNDLE_IDENTIFIER = pt.tig.awsary.tests;
916+
PRODUCT_NAME = "$(TARGET_NAME)";
917+
SDKROOT = iphoneos;
918+
SWIFT_VERSION = 5.0;
919+
TARGETED_DEVICE_FAMILY = "1,2";
920+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AWSary.app/AWSary";
921+
};
922+
name = Debug;
923+
};
924+
EEA1A10D2E5F000100AAA001 /* Release */ = {
925+
isa = XCBuildConfiguration;
926+
buildSettings = {
927+
BUNDLE_LOADER = "$(TEST_HOST)";
928+
CODE_SIGN_STYLE = Automatic;
929+
DEVELOPMENT_TEAM = "";
930+
GENERATE_INFOPLIST_FILE = YES;
931+
INFOPLIST_KEY_CFBundleDisplayName = AWSaryTests;
932+
LD_RUNPATH_SEARCH_PATHS = (
933+
"$(inherited)",
934+
"@executable_path/Frameworks",
935+
"@loader_path/Frameworks",
936+
);
937+
PRODUCT_BUNDLE_IDENTIFIER = pt.tig.awsary.tests;
938+
PRODUCT_NAME = "$(TARGET_NAME)";
939+
SDKROOT = iphoneos;
940+
SWIFT_VERSION = 5.0;
941+
TARGETED_DEVICE_FAMILY = "1,2";
942+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AWSary.app/AWSary";
943+
};
944+
name = Release;
945+
};
829946
EE00843F28820C8C003BA190 /* Debug */ = {
830947
isa = XCBuildConfiguration;
831948
buildSettings = {
@@ -986,6 +1103,15 @@
9861103
defaultConfigurationIsVisible = 0;
9871104
defaultConfigurationName = Release;
9881105
};
1106+
EEA1A10E2E5F000100AAA001 /* Build configuration list for PBXNativeTarget "AWSaryTests" */ = {
1107+
isa = XCConfigurationList;
1108+
buildConfigurations = (
1109+
EEA1A10C2E5F000100AAA001 /* Debug */,
1110+
EEA1A10D2E5F000100AAA001 /* Release */,
1111+
);
1112+
defaultConfigurationIsVisible = 0;
1113+
defaultConfigurationName = Release;
1114+
};
9891115
EE00843E28820C8C003BA190 /* Build configuration list for PBXNativeTarget "awsary (macOS)" */ = {
9901116
isa = XCConfigurationList;
9911117
buildConfigurations = (

ios/awsary.xcodeproj/xcshareddata/xcschemes/awsary (iOS).xcscheme

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@
2020
ReferencedContainer = "container:awsary.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "NO"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "NO">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "EEA1A1082E5F000100AAA001"
32+
BuildableName = "AWSaryTests.xctest"
33+
BlueprintName = "AWSaryTests"
34+
ReferencedContainer = "container:awsary.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
2337
</BuildActionEntries>
2438
</BuildAction>
2539
<TestAction
@@ -28,6 +42,27 @@
2842
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2943
shouldUseLaunchSchemeArgsEnv = "YES"
3044
shouldAutocreateTestPlan = "YES">
45+
<Testables>
46+
<TestableReference
47+
skipped = "NO">
48+
<BuildableReference
49+
BuildableIdentifier = "primary"
50+
BlueprintIdentifier = "EEA1A1082E5F000100AAA001"
51+
BuildableName = "AWSaryTests.xctest"
52+
BlueprintName = "AWSaryTests"
53+
ReferencedContainer = "container:awsary.xcodeproj">
54+
</BuildableReference>
55+
</TestableReference>
56+
</Testables>
57+
<MacroExpansion>
58+
<BuildableReference
59+
BuildableIdentifier = "primary"
60+
BlueprintIdentifier = "EE00842928820C8C003BA190"
61+
BuildableName = "AWSary.app"
62+
BlueprintName = "awsary (iOS)"
63+
ReferencedContainer = "container:awsary.xcodeproj">
64+
</BuildableReference>
65+
</MacroExpansion>
3166
</TestAction>
3267
<LaunchAction
3368
buildConfiguration = "Debug"

0 commit comments

Comments
 (0)