Skip to content

Commit 1d4cd9d

Browse files
committed
Add Build Phase script workaround for Xcode 15 frameworks signature issue during archiving
StackOverflow post for reference: https://stackoverflow.com/questions/77397157/mapbox-xcframework-ios-signature-couldn-t-be-copied-to-signatures-because-an-i
1 parent 1ec89dd commit 1d4cd9d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

GitUp/GitUp.xcodeproj/project.pbxproj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@
338338
E2653D271A5B3298006A9871 /* Copy Frameworks */,
339339
E21DCAF21B2538FB006424E8 /* Copy Tool */,
340340
1D7D03E724528390002C1736 /* ShellScript */,
341+
1DE5583E2B9D89BF006BA332 /* Xcode 15 Framework Patching */,
341342
);
342343
buildRules = (
343344
);
@@ -456,6 +457,24 @@
456457
shellPath = /bin/sh;
457458
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";
458459
};
460+
1DE5583E2B9D89BF006BA332 /* Xcode 15 Framework Patching */ = {
461+
isa = PBXShellScriptBuildPhase;
462+
buildActionMask = 8;
463+
files = (
464+
);
465+
inputFileListPaths = (
466+
);
467+
inputPaths = (
468+
);
469+
name = "Xcode 15 Framework Patching";
470+
outputFileListPaths = (
471+
);
472+
outputPaths = (
473+
);
474+
runOnlyForDeploymentPostprocessing = 1;
475+
shellPath = /bin/sh;
476+
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";
477+
};
459478
/* End PBXShellScriptBuildPhase section */
460479

461480
/* Begin PBXSourcesBuildPhase section */
@@ -630,6 +649,7 @@
630649
BUNDLE_VERSION = 0;
631650
BUNDLE_VERSION_STRING = 1.1;
632651
CODE_SIGN_ENTITLEMENTS = Application/GitUp.entitlements;
652+
"DEVELOPMENT_TEAM[sdk=macosx*]" = "";
633653
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/Third-Party";
634654
INFOPLIST_FILE = Application/Info.plist;
635655
LD_RUNPATH_SEARCH_PATHS = (
@@ -649,6 +669,7 @@
649669
BUNDLE_VERSION = 0;
650670
BUNDLE_VERSION_STRING = 1.1;
651671
CODE_SIGN_ENTITLEMENTS = Application/GitUp.entitlements;
672+
"DEVELOPMENT_TEAM[sdk=macosx*]" = "";
652673
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/Third-Party";
653674
INFOPLIST_FILE = Application/Info.plist;
654675
LD_RUNPATH_SEARCH_PATHS = (

0 commit comments

Comments
 (0)