Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable customization of arguments in Xcode package plugin #149

Merged
merged 12 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Subproject
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples/ExampleMultiProjectIntegration/ExampleMultiProjectIntegration is already scanned because it's the root module. We just need to list the paths to the other module(s) in this file.

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objectVersion = 60;
objects = {

/* Begin PBXBuildFile section */
3203E2232BF94B7D0094A988 /* SafeDI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3203E2222BF94B7D0094A988 /* SafeDI.swift */; };
3203E2312BF94D630094A988 /* SafeDI in Frameworks */ = {isa = PBXBuildFile; productRef = 3203E2302BF94D630094A988 /* SafeDI */; };
324F1ECF2B314E030001AC0C /* NameEntryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324F1ECE2B314E030001AC0C /* NameEntryView.swift */; };
324F1ED22B3150480001AC0C /* NoteView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324F1ED12B3150480001AC0C /* NoteView.swift */; };
32756FE62B24C042006BDD24 /* ExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32756FE52B24C042006BDD24 /* ExampleApp.swift */; };
Expand All @@ -20,7 +18,8 @@
3289B40D2BF955A10053F2E4 /* StringStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324F1ECC2B314DB20001AC0C /* StringStorage.swift */; };
3289B40E2BF955A10053F2E4 /* AnyObservableObject.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324F1ED62B3156810001AC0C /* AnyObservableObject.swift */; };
3289B40F2BF955A10053F2E4 /* UserService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324F1ECA2B314D8D0001AC0C /* UserService.swift */; };
3289B4112BF955DF0053F2E4 /* SafeDI in Frameworks */ = {isa = PBXBuildFile; productRef = 3289B4102BF955DF0053F2E4 /* SafeDI */; };
32B72E192D39763900F5EB6F /* SafeDI in Frameworks */ = {isa = PBXBuildFile; productRef = 32B72E182D39763900F5EB6F /* SafeDI */; };
32B72E1B2D39764200F5EB6F /* SafeDI in Frameworks */ = {isa = PBXBuildFile; productRef = 32B72E1A2D39764200F5EB6F /* SafeDI */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -48,7 +47,6 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
3203E2222BF94B7D0094A988 /* SafeDI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SafeDI.swift; sourceTree = "<group>"; };
324F1ECA2B314D8D0001AC0C /* UserService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserService.swift; sourceTree = "<group>"; };
324F1ECC2B314DB20001AC0C /* StringStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StringStorage.swift; sourceTree = "<group>"; };
324F1ECE2B314E030001AC0C /* NameEntryView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NameEntryView.swift; sourceTree = "<group>"; };
Expand All @@ -68,7 +66,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3203E2312BF94D630094A988 /* SafeDI in Frameworks */,
32B72E192D39763900F5EB6F /* SafeDI in Frameworks */,
3289B4072BF955720053F2E4 /* Subproject.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -77,7 +75,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3289B4112BF955DF0053F2E4 /* SafeDI in Frameworks */,
32B72E1B2D39764200F5EB6F /* SafeDI in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -120,7 +118,6 @@
32756FE92B24C044006BDD24 /* Assets.xcassets */,
32756FEB2B24C044006BDD24 /* ExampleMultiProjectIntegration.entitlements */,
32756FEC2B24C044006BDD24 /* Preview Content */,
3203E2222BF94B7D0094A988 /* SafeDI.swift */,
);
path = ExampleMultiProjectIntegration;
sourceTree = "<group>";
Expand Down Expand Up @@ -169,7 +166,6 @@
isa = PBXNativeTarget;
buildConfigurationList = 32756FF12B24C044006BDD24 /* Build configuration list for PBXNativeTarget "ExampleMultiProjectIntegration" */;
buildPhases = (
3203E2192BF7B4630094A988 /* Run SafeDITool */,
32756FDE2B24C042006BDD24 /* Sources */,
32756FDF2B24C042006BDD24 /* Frameworks */,
32756FE02B24C042006BDD24 /* Resources */,
Expand All @@ -178,11 +174,12 @@
buildRules = (
);
dependencies = (
32B72E1D2D39765B00F5EB6F /* PBXTargetDependency */,
3289B4062BF955720053F2E4 /* PBXTargetDependency */,
);
name = ExampleMultiProjectIntegration;
packageProductDependencies = (
3203E2302BF94D630094A988 /* SafeDI */,
32B72E182D39763900F5EB6F /* SafeDI */,
);
productName = ExampleMultiProjectIntegration;
productReference = 32756FE22B24C042006BDD24 /* ExampleMultiProjectIntegration.app */;
Expand All @@ -203,7 +200,7 @@
);
name = Subproject;
packageProductDependencies = (
3289B4102BF955DF0053F2E4 /* SafeDI */,
32B72E1A2D39764200F5EB6F /* SafeDI */,
);
productName = Subproject;
productReference = 3289B4012BF955710053F2E4 /* Subproject.framework */;
Expand Down Expand Up @@ -237,7 +234,7 @@
);
mainGroup = 32756FD92B24C042006BDD24;
packageReferences = (
3203E22C2BF94D3F0094A988 /* XCRemoteSwiftPackageReference "SafeDI" */,
32B72E172D39763900F5EB6F /* XCLocalSwiftPackageReference "../../../SafeDI" */,
);
productRefGroup = 32756FE32B24C042006BDD24 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -268,29 +265,6 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
3203E2192BF7B4630094A988 /* Run SafeDITool */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "Run SafeDITool";
outputFileListPaths = (
);
outputPaths = (
$PROJECT_DIR/ExampleMultiProjectIntegration/SafeDI.swift,
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "xcrun swift run --package-path \"$BUILD_ROOT/../../SourcePackages/checkouts/SafeDI\" --scratch-path \"$BUILD_DIR/SafeDITool-$CONFIGURATION\" SafeDITool --include \"$PROJECT_DIR/ExampleMultiProjectIntegration\" \"$PROJECT_DIR/Subproject\" --dependency-tree-output \"$PROJECT_DIR/ExampleMultiProjectIntegration/SafeDI.swift\"\n";
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
32756FDE2B24C042006BDD24 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand All @@ -299,7 +273,6 @@
324F1ECF2B314E030001AC0C /* NameEntryView.swift in Sources */,
324F1ED22B3150480001AC0C /* NoteView.swift in Sources */,
32756FE62B24C042006BDD24 /* ExampleApp.swift in Sources */,
3203E2232BF94B7D0094A988 /* SafeDI.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -321,6 +294,10 @@
target = 3289B4002BF955710053F2E4 /* Subproject */;
targetProxy = 3289B4052BF955720053F2E4 /* PBXContainerItemProxy */;
};
32B72E1D2D39765B00F5EB6F /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
productRef = 32B72E1C2D39765B00F5EB6F /* SafeDIGenerator */;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're now using the plugin instead of a build script phase

};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
Expand Down Expand Up @@ -630,28 +607,28 @@
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
3203E22C2BF94D3F0094A988 /* XCRemoteSwiftPackageReference "SafeDI" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/dfed/SafeDI";
requirement = {
branch = main;
kind = branch;
};
/* Begin XCLocalSwiftPackageReference section */
32B72E172D39763900F5EB6F /* XCLocalSwiftPackageReference "../../../SafeDI" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../../../SafeDI;
};
/* End XCRemoteSwiftPackageReference section */
/* End XCLocalSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
3203E2302BF94D630094A988 /* SafeDI */ = {
32B72E182D39763900F5EB6F /* SafeDI */ = {
isa = XCSwiftPackageProductDependency;
package = 3203E22C2BF94D3F0094A988 /* XCRemoteSwiftPackageReference "SafeDI" */;
productName = SafeDI;
};
3289B4102BF955DF0053F2E4 /* SafeDI */ = {
32B72E1A2D39764200F5EB6F /* SafeDI */ = {
isa = XCSwiftPackageProductDependency;
package = 3203E22C2BF94D3F0094A988 /* XCRemoteSwiftPackageReference "SafeDI" */;
package = 32B72E172D39763900F5EB6F /* XCLocalSwiftPackageReference "../../../SafeDI" */;
productName = SafeDI;
};
32B72E1C2D39765B00F5EB6F /* SafeDIGenerator */ = {
isa = XCSwiftPackageProductDependency;
package = 32B72E172D39763900F5EB6F /* XCLocalSwiftPackageReference "../../../SafeDI" */;
productName = "plugin:SafeDIGenerator";
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 32756FDA2B24C042006BDD24 /* Project object */;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objectVersion = 60;
objects = {

/* Begin PBXBuildFile section */
320A3ECF2D39655700D8EC2E /* SafeDI in Frameworks */ = {isa = PBXBuildFile; productRef = 320A3ECE2D39655700D8EC2E /* SafeDI */; };
324F1ECB2B314D8D0001AC0C /* UserService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324F1ECA2B314D8D0001AC0C /* UserService.swift */; };
324F1ECD2B314DB20001AC0C /* StringStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324F1ECC2B314DB20001AC0C /* StringStorage.swift */; };
324F1ECF2B314E030001AC0C /* NameEntryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324F1ECE2B314E030001AC0C /* NameEntryView.swift */; };
Expand All @@ -15,7 +16,6 @@
32756FE62B24C042006BDD24 /* ExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32756FE52B24C042006BDD24 /* ExampleApp.swift */; };
32756FEA2B24C044006BDD24 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 32756FE92B24C044006BDD24 /* Assets.xcassets */; };
32756FEE2B24C044006BDD24 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 32756FED2B24C044006BDD24 /* Preview Assets.xcassets */; };
32B280A32B28176D00A33FED /* SafeDI in Frameworks */ = {isa = PBXBuildFile; productRef = 32B280A22B28176D00A33FED /* SafeDI */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -36,7 +36,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
32B280A32B28176D00A33FED /* SafeDI in Frameworks */,
320A3ECF2D39655700D8EC2E /* SafeDI in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -121,11 +121,11 @@
buildRules = (
);
dependencies = (
321042552B2533F30088785D /* PBXTargetDependency */,
320A3ED32D3967BD00D8EC2E /* PBXTargetDependency */,
);
name = ExampleProjectIntegration;
packageProductDependencies = (
32B280A22B28176D00A33FED /* SafeDI */,
320A3ECE2D39655700D8EC2E /* SafeDI */,
);
productName = ExampleProjectIntegration;
productReference = 32756FE22B24C042006BDD24 /* ExampleProjectIntegration.app */;
Expand Down Expand Up @@ -156,7 +156,7 @@
);
mainGroup = 32756FD92B24C042006BDD24;
packageReferences = (
321042512B2533ED0088785D /* XCRemoteSwiftPackageReference "SafeDI" */,
320A3ECD2D39655700D8EC2E /* XCLocalSwiftPackageReference "../../../SafeDI" */,
);
productRefGroup = 32756FE32B24C042006BDD24 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -196,9 +196,9 @@
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
321042552B2533F30088785D /* PBXTargetDependency */ = {
320A3ED32D3967BD00D8EC2E /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
productRef = 321042542B2533F30088785D /* SafeDIGenerator */;
productRef = 320A3ED22D3967BD00D8EC2E /* SafeDIGenerator */;
};
/* End PBXTargetDependency section */

Expand Down Expand Up @@ -416,27 +416,22 @@
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
321042512B2533ED0088785D /* XCRemoteSwiftPackageReference "SafeDI" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/dfed/SafeDI.git";
requirement = {
branch = main;
kind = branch;
};
/* Begin XCLocalSwiftPackageReference section */
320A3ECD2D39655700D8EC2E /* XCLocalSwiftPackageReference "../../../SafeDI" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../../../SafeDI;
};
/* End XCRemoteSwiftPackageReference section */
/* End XCLocalSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
321042542B2533F30088785D /* SafeDIGenerator */ = {
320A3ECE2D39655700D8EC2E /* SafeDI */ = {
isa = XCSwiftPackageProductDependency;
package = 321042512B2533ED0088785D /* XCRemoteSwiftPackageReference "SafeDI" */;
productName = "plugin:SafeDIGenerator";
productName = SafeDI;
};
32B280A22B28176D00A33FED /* SafeDI */ = {
320A3ED22D3967BD00D8EC2E /* SafeDIGenerator */ = {
isa = XCSwiftPackageProductDependency;
package = 321042512B2533ED0088785D /* XCRemoteSwiftPackageReference "SafeDI" */;
productName = SafeDI;
package = 320A3ECD2D39655700D8EC2E /* XCLocalSwiftPackageReference "../../../SafeDI" */;
productName = "plugin:SafeDIGenerator";
};
/* End XCSwiftPackageProductDependency section */
};
Expand Down
Loading
Loading