Skip to content

Commit

Permalink
Add Build Phase script workaround for Xcode 15 frameworks signature i…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasderraugh committed Mar 10, 2024
1 parent 1ec89dd commit 1d4cd9d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions GitUp/GitUp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
E2653D271A5B3298006A9871 /* Copy Frameworks */,
E21DCAF21B2538FB006424E8 /* Copy Tool */,
1D7D03E724528390002C1736 /* ShellScript */,
1DE5583E2B9D89BF006BA332 /* Xcode 15 Framework Patching */,
);
buildRules = (
);
Expand Down Expand Up @@ -456,6 +457,24 @@
shellPath = /bin/sh;
shellScript = "# Code sign sparkle app\nLOCATION=\"${BUILT_PRODUCTS_DIR}\"/\"${FRAMEWORKS_FOLDER_PATH}\"\n\n# By default, use the configured code signing identity for the project/target\nIDENTITY=\"${EXPANDED_CODE_SIGN_IDENTITY}\"\nif [ \"$IDENTITY\" == \"\" ]\nthen\n # If a code signing identity is not specified, use ad hoc signing\n IDENTITY=\"-\"\nfi\ncodesign --verbose --force --deep -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A/Resources/AutoUpdate.app\"\ncodesign --verbose --force -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A\"\n";
};
1DE5583E2B9D89BF006BA332 /* Xcode 15 Framework Patching */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 8;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "Xcode 15 Framework Patching";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 1;
shellPath = /bin/sh;
shellScript = "# Information derived from https://stackoverflow.com/questions/77397157/mapbox-xcframework-ios-signature-couldn-t-be-copied-to-signatures-because-an-i\nif [ \"$XCODE_VERSION_MAJOR\" = \"1500\" ]; then\n echo \"Remove signature files (Xcode 15 workaround)\"\n find \"$BUILD_DIR/${CONFIGURATION}/libssl.xcframework-macos.signature\" -name \"*.signature\" -type f | xargs -r rm\n find \"$BUILD_DIR/${CONFIGURATION}/libcrypto.xcframework-macos.signature\" -name \"*.signature\" -type f | xargs -r rm\n find \"$BUILD_DIR/${CONFIGURATION}/libssh2.xcframework-macos.signature\" -name \"*.signature\" -type f | xargs -r rm\nfi\n";
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -630,6 +649,7 @@
BUNDLE_VERSION = 0;
BUNDLE_VERSION_STRING = 1.1;
CODE_SIGN_ENTITLEMENTS = Application/GitUp.entitlements;
"DEVELOPMENT_TEAM[sdk=macosx*]" = "";
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/Third-Party";
INFOPLIST_FILE = Application/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -649,6 +669,7 @@
BUNDLE_VERSION = 0;
BUNDLE_VERSION_STRING = 1.1;
CODE_SIGN_ENTITLEMENTS = Application/GitUp.entitlements;
"DEVELOPMENT_TEAM[sdk=macosx*]" = "";
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/Third-Party";
INFOPLIST_FILE = Application/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down

0 comments on commit 1d4cd9d

Please sign in to comment.