Skip to content

Commit 032f0ed

Browse files
committed
Move Xcode project
Moved the Xcode project file, the xcconfig files and info.plists to the Resource folder. The distribution scripts where also moved to the Resource folder and the Cartfile.project and Github actions where updated to reflect the changes as well.
1 parent a30e456 commit 032f0ed

File tree

11 files changed

+17
-42
lines changed

11 files changed

+17
-42
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
env:
15-
project: Source/OCHamcrest.xcodeproj
15+
project: Resources/OCHamcrest.xcodeproj
1616

1717
jobs:
1818
build:

Cartfile.project

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
OCHamcrest:
2-
project: Source/OCHamcrest.xcodeproj
2+
project: Resources/OCHamcrest.xcodeproj
33
sdks:
44
- macosx
55
- iphonesimulator

Package.swift

-10
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ let package = Package(
1919
.target(
2020
name: "OCHamcrest",
2121
path: "Source",
22-
exclude: [
23-
"MakeDistribution.sh",
24-
"makeXCFramework.sh",
25-
"OCHamcrest-Info.plist",
26-
"XcodeTargets.xcconfig",
27-
"XcodeWarnings.xcconfig",
28-
],
2922
publicHeadersPath: "include",
3023
cSettings: [
3124
CSetting.headerSearchPath("./Core/Helpers"),
@@ -38,9 +31,6 @@ let package = Package(
3831
dependencies: [
3932
.target(name: "OCHamcrest")
4033
],
41-
exclude: [
42-
"Resources/Tests-Info.plist",
43-
],
4434
cSettings: [
4535
.headerSearchPath("."),
4636
]
File renamed without changes.
File renamed without changes.

Source/OCHamcrest.xcodeproj/project.pbxproj renamed to Resources/OCHamcrest.xcodeproj/project.pbxproj

+8-6
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
0876035E13440AD8001B439B /* HCStringEndsWithTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HCStringEndsWithTests.m; sourceTree = "<group>"; };
282282
0876035F13440AD8001B439B /* HCStringStartsWithTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HCStringStartsWithTests.m; sourceTree = "<group>"; };
283283
0876038D13440B80001B439B /* OCHamcrest-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "OCHamcrest-Info.plist"; sourceTree = "<group>"; };
284-
0876039113440BB0001B439B /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Tests-Info.plist"; path = "../Tests/OCHamcrestTests/Resources/Tests-Info.plist"; sourceTree = "<group>"; };
284+
0876039113440BB0001B439B /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; };
285285
088FB0AA136A6DEA00C191E1 /* HCStringContainsInOrderTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HCStringContainsInOrderTests.m; sourceTree = "<group>"; };
286286
0E49BBDB1C47498C00418A3C /* XcodeWarnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = XcodeWarnings.xcconfig; sourceTree = "<group>"; };
287287
0E5ECE6B1BC20C3300C15D2A /* HCIsCollectionContainingInRelativeOrder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HCIsCollectionContainingInRelativeOrder.h; sourceTree = "<group>"; };
@@ -372,7 +372,7 @@
372372
BB333522A78D6A7D1A8414B3 /* HCIsIn.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HCIsIn.m; sourceTree = "<group>"; };
373373
BB333528C8E2ED8489ACB161 /* HCTestFailureReporter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HCTestFailureReporter.m; sourceTree = "<group>"; };
374374
BB33355AD08369793188986F /* HCObjectReturnGetter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HCObjectReturnGetter.m; sourceTree = "<group>"; };
375-
BB33356A6185FA4F1B6E240F /* OCHamcrest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCHamcrest.h; sourceTree = "<group>"; };
375+
BB33356A6185FA4F1B6E240F /* OCHamcrest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OCHamcrest.h; path = ../Source/OCHamcrest.h; sourceTree = "<group>"; };
376376
BB33359133039118AE88E2A8 /* HCIsNil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HCIsNil.h; sourceTree = "<group>"; };
377377
BB333594FB0AC2DAC3B73077 /* HCIsSame.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HCIsSame.m; sourceTree = "<group>"; };
378378
BB3335974ADA5C5408FE0F69 /* HCStringEndsWith.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HCStringEndsWith.m; sourceTree = "<group>"; };
@@ -715,7 +715,8 @@
715715
BB333D43717AD7243D63A4AB /* HCStringDescription.m */,
716716
BB33378F4CD8AE4C7EFC1CF0 /* Helpers */,
717717
);
718-
path = Core;
718+
name = Core;
719+
path = ../Source/Core;
719720
sourceTree = "<group>";
720721
};
721722
BB33378F4CD8AE4C7EFC1CF0 /* Helpers */ = {
@@ -831,7 +832,8 @@
831832
BB333072EBF64C385754421B /* Object */,
832833
BB333EA5543B2EAB4E34B3CF /* Text */,
833834
);
834-
path = Library;
835+
name = Library;
836+
path = ../Source/Library;
835837
sourceTree = "<group>";
836838
};
837839
BB333EA5543B2EAB4E34B3CF /* Text */ = {
@@ -1336,7 +1338,7 @@
13361338
baseConfigurationReference = 0E49BBDB1C47498C00418A3C /* XcodeWarnings.xcconfig */;
13371339
buildSettings = {
13381340
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
1339-
INFOPLIST_FILE = "$(SRCROOT)/../Tests/OCHamcrestTests/Resources/Tests-Info.plist";
1341+
INFOPLIST_FILE = "Tests-Info.plist";
13401342
PRODUCT_NAME = "$(TARGET_NAME)";
13411343
SDKROOT = macosx;
13421344
};
@@ -1347,7 +1349,7 @@
13471349
baseConfigurationReference = 0E49BBDB1C47498C00418A3C /* XcodeWarnings.xcconfig */;
13481350
buildSettings = {
13491351
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
1350-
INFOPLIST_FILE = "$(SRCROOT)/../Tests/OCHamcrestTests/Resources/Tests-Info.plist";
1352+
INFOPLIST_FILE = "Tests-Info.plist";
13511353
PRODUCT_NAME = "$(TARGET_NAME)";
13521354
SDKROOT = macosx;
13531355
};

Source/OCHamcrest.xcodeproj/xcshareddata/xcschemes/OCHamcrest.xcscheme renamed to Resources/OCHamcrest.xcodeproj/xcshareddata/xcschemes/OCHamcrest.xcscheme

+7-24
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1420"
4-
version = "1.3">
3+
LastUpgradeVersion = "1600"
4+
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"
7-
buildImplicitDependencies = "YES">
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
89
<BuildActionEntries>
910
<BuildActionEntry
1011
buildForTesting = "YES"
@@ -24,19 +25,10 @@
2425
</BuildAction>
2526
<TestAction
2627
buildConfiguration = "Debug"
27-
selectedDebuggerIdentifier = ""
28-
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2930
shouldUseLaunchSchemeArgsEnv = "YES"
30-
codeCoverageEnabled = "YES">
31-
<MacroExpansion>
32-
<BuildableReference
33-
BuildableIdentifier = "primary"
34-
BlueprintIdentifier = "087601E113440806001B439B"
35-
BuildableName = "OCHamcrest.framework"
36-
BlueprintName = "OCHamcrest"
37-
ReferencedContainer = "container:OCHamcrest.xcodeproj">
38-
</BuildableReference>
39-
</MacroExpansion>
31+
shouldAutocreateTestPlan = "YES">
4032
<Testables>
4133
<TestableReference
4234
skipped = "NO">
@@ -60,15 +52,6 @@
6052
debugDocumentVersioning = "YES"
6153
debugServiceExtension = "internal"
6254
allowLocationSimulation = "YES">
63-
<MacroExpansion>
64-
<BuildableReference
65-
BuildableIdentifier = "primary"
66-
BlueprintIdentifier = "087601E113440806001B439B"
67-
BuildableName = "OCHamcrest.framework"
68-
BlueprintName = "OCHamcrest"
69-
ReferencedContainer = "container:OCHamcrest.xcodeproj">
70-
</BuildableReference>
71-
</MacroExpansion>
7255
</LaunchAction>
7356
<ProfileAction
7457
buildConfiguration = "Release"
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)