Skip to content

Commit fa86ec9

Browse files
author
Bruno Oliveira
committed
fix test targets
1 parent e17723b commit fa86ec9

File tree

3 files changed

+123
-6
lines changed

3 files changed

+123
-6
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
- name: Build & test iOS
2525
run: |
2626
swift package generate-xcodeproj --output temp && cd temp
27-
xcodebuild build -sdk iphoneos -scheme 'MarkdownKit-Package'
28-
xcodebuild test -destination 'name=iPhone 16' -scheme 'MarkdownKit-Package'
27+
xcodebuild build -sdk iphoneos -scheme 'MarkdownKit iOS'
28+
xcodebuild test -destination 'name=iPhone 16' -scheme 'MarkdownKit iOS'
2929
cd .. && rm -r temp

MarkdownKit.xcodeproj/project.pbxproj

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
5FB3400F2E0BE3A500D623E3 /* MarkdownUnderline.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F8B49252E0B269E001B12E8 /* MarkdownUnderline.swift */; };
2222
5FB340112E0BE5FA00D623E3 /* MarkdownLineBreak.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FB340102E0BE5FA00D623E3 /* MarkdownLineBreak.swift */; };
2323
5FB340122E0BE5FA00D623E3 /* MarkdownLineBreak.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FB340102E0BE5FA00D623E3 /* MarkdownLineBreak.swift */; };
24+
5FB3401B2E0BEEAC00D623E3 /* MarkdownKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B62C1BFF21EF7EED00308C8C /* MarkdownKit.framework */; };
25+
5FB340212E0BEECC00D623E3 /* MarkdownParserTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D3A84BA2632058A00E69F9F /* MarkdownParserTests.swift */; };
2426
B62C1BEB21EF7D8D00308C8C /* String+HTMLDecode.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62C1BE221EF7D8C00308C8C /* String+HTMLDecode.swift */; };
2527
B62C1BEC21EF7D8D00308C8C /* MarkdownSubreddit.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62C1BE321EF7D8C00308C8C /* MarkdownSubreddit.swift */; };
2628
B62C1BEE21EF7D8D00308C8C /* Product Sans Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B62C1BE521EF7D8C00308C8C /* Product Sans Regular.ttf */; };
@@ -101,6 +103,13 @@
101103
remoteGlobalIDString = B64AF6132203402F0048439D;
102104
remoteInfo = "MarkdownKit macOS";
103105
};
106+
5FB3401C2E0BEEAC00D623E3 /* PBXContainerItemProxy */ = {
107+
isa = PBXContainerItemProxy;
108+
containerPortal = B62C1BA521EF7C8000308C8C /* Project object */;
109+
proxyType = 1;
110+
remoteGlobalIDString = B62C1BFE21EF7EED00308C8C;
111+
remoteInfo = "MarkdownKit iOS";
112+
};
104113
/* End PBXContainerItemProxy section */
105114

106115
/* Begin PBXCopyFilesBuildPhase section */
@@ -134,6 +143,7 @@
134143
3EB3627C23154D90005D48C8 /* MarkdownStrikethrough.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarkdownStrikethrough.swift; sourceTree = "<group>"; };
135144
5F8B49252E0B269E001B12E8 /* MarkdownUnderline.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarkdownUnderline.swift; sourceTree = "<group>"; };
136145
5FB340102E0BE5FA00D623E3 /* MarkdownLineBreak.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarkdownLineBreak.swift; sourceTree = "<group>"; };
146+
5FB340172E0BEEAC00D623E3 /* MarkdownKit-test.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "MarkdownKit-test.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
137147
B62C1BAD21EF7C8000308C8C /* Example iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Example iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
138148
B62C1BE221EF7D8C00308C8C /* String+HTMLDecode.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "String+HTMLDecode.swift"; sourceTree = "<group>"; };
139149
B62C1BE321EF7D8C00308C8C /* MarkdownSubreddit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MarkdownSubreddit.swift; sourceTree = "<group>"; };
@@ -191,6 +201,14 @@
191201
/* End PBXFileReference section */
192202

193203
/* Begin PBXFrameworksBuildPhase section */
204+
5FB340142E0BEEAC00D623E3 /* Frameworks */ = {
205+
isa = PBXFrameworksBuildPhase;
206+
buildActionMask = 2147483647;
207+
files = (
208+
5FB3401B2E0BEEAC00D623E3 /* MarkdownKit.framework in Frameworks */,
209+
);
210+
runOnlyForDeploymentPostprocessing = 0;
211+
};
194212
B62C1BAA21EF7C8000308C8C /* Frameworks */ = {
195213
isa = PBXFrameworksBuildPhase;
196214
buildActionMask = 2147483647;
@@ -291,6 +309,7 @@
291309
B62C1BFF21EF7EED00308C8C /* MarkdownKit.framework */,
292310
B64AF6142203402F0048439D /* MarkdownKit.framework */,
293311
B64AF646220349900048439D /* Example macOS.app */,
312+
5FB340172E0BEEAC00D623E3 /* MarkdownKit-test.xctest */,
294313
);
295314
name = Products;
296315
sourceTree = "<group>";
@@ -633,6 +652,26 @@
633652
/* End PBXHeadersBuildPhase section */
634653

635654
/* Begin PBXNativeTarget section */
655+
5FB340162E0BEEAC00D623E3 /* MarkdownKit-test */ = {
656+
isa = PBXNativeTarget;
657+
buildConfigurationList = 5FB3401E2E0BEEAC00D623E3 /* Build configuration list for PBXNativeTarget "MarkdownKit-test" */;
658+
buildPhases = (
659+
5FB340132E0BEEAC00D623E3 /* Sources */,
660+
5FB340142E0BEEAC00D623E3 /* Frameworks */,
661+
5FB340152E0BEEAC00D623E3 /* Resources */,
662+
);
663+
buildRules = (
664+
);
665+
dependencies = (
666+
5FB3401D2E0BEEAC00D623E3 /* PBXTargetDependency */,
667+
);
668+
name = "MarkdownKit-test";
669+
packageProductDependencies = (
670+
);
671+
productName = "MarkdownKit-test";
672+
productReference = 5FB340172E0BEEAC00D623E3 /* MarkdownKit-test.xctest */;
673+
productType = "com.apple.product-type.bundle.unit-test";
674+
};
636675
B62C1BAC21EF7C8000308C8C /* Example iOS */ = {
637676
isa = PBXNativeTarget;
638677
buildConfigurationList = B62C1BCA21EF7C8100308C8C /* Build configuration list for PBXNativeTarget "Example iOS" */;
@@ -720,10 +759,13 @@
720759
isa = PBXProject;
721760
attributes = {
722761
BuildIndependentTargetsInParallel = YES;
723-
LastSwiftUpdateCheck = 1240;
762+
LastSwiftUpdateCheck = 1640;
724763
LastUpgradeCheck = 1640;
725764
ORGANIZATIONNAME = "Ivan Bruel";
726765
TargetAttributes = {
766+
5FB340162E0BEEAC00D623E3 = {
767+
CreatedOnToolsVersion = 16.4;
768+
};
727769
B62C1BAC21EF7C8000308C8C = {
728770
CreatedOnToolsVersion = 10.1;
729771
LastSwiftMigration = 1010;
@@ -765,11 +807,19 @@
765807
B64AF645220349900048439D /* Example macOS */,
766808
B62C1BFE21EF7EED00308C8C /* MarkdownKit iOS */,
767809
B64AF6132203402F0048439D /* MarkdownKit macOS */,
810+
5FB340162E0BEEAC00D623E3 /* MarkdownKit-test */,
768811
);
769812
};
770813
/* End PBXProject section */
771814

772815
/* Begin PBXResourcesBuildPhase section */
816+
5FB340152E0BEEAC00D623E3 /* Resources */ = {
817+
isa = PBXResourcesBuildPhase;
818+
buildActionMask = 2147483647;
819+
files = (
820+
);
821+
runOnlyForDeploymentPostprocessing = 0;
822+
};
773823
B62C1BAB21EF7C8000308C8C /* Resources */ = {
774824
isa = PBXResourcesBuildPhase;
775825
buildActionMask = 2147483647;
@@ -808,6 +858,14 @@
808858
/* End PBXResourcesBuildPhase section */
809859

810860
/* Begin PBXSourcesBuildPhase section */
861+
5FB340132E0BEEAC00D623E3 /* Sources */ = {
862+
isa = PBXSourcesBuildPhase;
863+
buildActionMask = 2147483647;
864+
files = (
865+
5FB340212E0BEECC00D623E3 /* MarkdownParserTests.swift in Sources */,
866+
);
867+
runOnlyForDeploymentPostprocessing = 0;
868+
};
811869
B62C1BA921EF7C8000308C8C /* Sources */ = {
812870
isa = PBXSourcesBuildPhase;
813871
buildActionMask = 2147483647;
@@ -911,6 +969,11 @@
911969
target = B64AF6132203402F0048439D /* MarkdownKit macOS */;
912970
targetProxy = 3DBA81282631737A009CEB6B /* PBXContainerItemProxy */;
913971
};
972+
5FB3401D2E0BEEAC00D623E3 /* PBXTargetDependency */ = {
973+
isa = PBXTargetDependency;
974+
target = B62C1BFE21EF7EED00308C8C /* MarkdownKit iOS */;
975+
targetProxy = 5FB3401C2E0BEEAC00D623E3 /* PBXContainerItemProxy */;
976+
};
914977
/* End PBXTargetDependency section */
915978

916979
/* Begin PBXVariantGroup section */
@@ -941,6 +1004,51 @@
9411004
/* End PBXVariantGroup section */
9421005

9431006
/* Begin XCBuildConfiguration section */
1007+
5FB3401F2E0BEEAC00D623E3 /* Debug */ = {
1008+
isa = XCBuildConfiguration;
1009+
buildSettings = {
1010+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
1011+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
1012+
CODE_SIGN_STYLE = Manual;
1013+
CURRENT_PROJECT_VERSION = 1;
1014+
DEVELOPMENT_TEAM = "";
1015+
GCC_C_LANGUAGE_STANDARD = gnu17;
1016+
GENERATE_INFOPLIST_FILE = YES;
1017+
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
1018+
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
1019+
MARKETING_VERSION = 1.0;
1020+
PRODUCT_BUNDLE_IDENTIFIER = "com.markdownkit.MarkdownKit-test";
1021+
PRODUCT_NAME = "$(TARGET_NAME)";
1022+
PROVISIONING_PROFILE_SPECIFIER = "";
1023+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
1024+
SWIFT_EMIT_LOC_STRINGS = NO;
1025+
SWIFT_VERSION = 5.0;
1026+
TARGETED_DEVICE_FAMILY = "1,2";
1027+
};
1028+
name = Debug;
1029+
};
1030+
5FB340202E0BEEAC00D623E3 /* Release */ = {
1031+
isa = XCBuildConfiguration;
1032+
buildSettings = {
1033+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
1034+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
1035+
CODE_SIGN_STYLE = Manual;
1036+
CURRENT_PROJECT_VERSION = 1;
1037+
DEVELOPMENT_TEAM = "";
1038+
GCC_C_LANGUAGE_STANDARD = gnu17;
1039+
GENERATE_INFOPLIST_FILE = YES;
1040+
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
1041+
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
1042+
MARKETING_VERSION = 1.0;
1043+
PRODUCT_BUNDLE_IDENTIFIER = "com.markdownkit.MarkdownKit-test";
1044+
PRODUCT_NAME = "$(TARGET_NAME)";
1045+
PROVISIONING_PROFILE_SPECIFIER = "";
1046+
SWIFT_EMIT_LOC_STRINGS = NO;
1047+
SWIFT_VERSION = 5.0;
1048+
TARGETED_DEVICE_FAMILY = "1,2";
1049+
};
1050+
name = Release;
1051+
};
9441052
B62C1BC821EF7C8100308C8C /* Debug */ = {
9451053
isa = XCBuildConfiguration;
9461054
buildSettings = {
@@ -1290,6 +1398,15 @@
12901398
/* End XCBuildConfiguration section */
12911399

12921400
/* Begin XCConfigurationList section */
1401+
5FB3401E2E0BEEAC00D623E3 /* Build configuration list for PBXNativeTarget "MarkdownKit-test" */ = {
1402+
isa = XCConfigurationList;
1403+
buildConfigurations = (
1404+
5FB3401F2E0BEEAC00D623E3 /* Debug */,
1405+
5FB340202E0BEEAC00D623E3 /* Release */,
1406+
);
1407+
defaultConfigurationIsVisible = 0;
1408+
defaultConfigurationName = Release;
1409+
};
12931410
B62C1BA821EF7C8000308C8C /* Build configuration list for PBXProject "MarkdownKit" */ = {
12941411
isa = XCConfigurationList;
12951412
buildConfigurations = (

MarkdownKit.xcodeproj/xcshareddata/xcschemes/MarkdownKit iOS.xcscheme

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
skipped = "NO">
4242
<BuildableReference
4343
BuildableIdentifier = "primary"
44-
BlueprintIdentifier = "B62C1C0621EF7EED00308C8C"
45-
BuildableName = "MarkdownKitTests.xctest"
46-
BlueprintName = "MarkdownKitTests"
44+
BlueprintIdentifier = "5FB340162E0BEEAC00D623E3"
45+
BuildableName = "MarkdownKit-test.xctest"
46+
BlueprintName = "MarkdownKit-test"
4747
ReferencedContainer = "container:MarkdownKit.xcodeproj">
4848
</BuildableReference>
4949
</TestableReference>

0 commit comments

Comments
 (0)