From a32bb5798c20b6bd3b78d56b81022e16c5601677 Mon Sep 17 00:00:00 2001 From: Ty Rauber Date: Mon, 29 Jan 2024 20:16:30 +0100 Subject: [PATCH] Fix: Duplicated Signature issue with Xcode 15 #12022 https://github.com/CocoaPods/CocoaPods/issues/12022 --- plugin/src/withMapLibre.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/src/withMapLibre.ts b/plugin/src/withMapLibre.ts index ccea3ea15..3f7a89e43 100644 --- a/plugin/src/withMapLibre.ts +++ b/plugin/src/withMapLibre.ts @@ -125,9 +125,12 @@ export function setExcludedArchitectures(project: XcodeProject): XcodeProject { typeof buildSettings?.PRODUCT_NAME !== 'undefined' ) { buildSettings['"EXCLUDED_ARCHS[sdk=iphonesimulator*]"'] = '"arm64"'; + project.addBuildPhase([ + 'name = "Remove Signatures"', + 'shellScript = "if [ \"$XCODE_VERSION_MAJOR\" = \"1500\" ]; then\n echo \"********* Remove signature files (Xcode 15 workaround)\"\n\n rm -rf \"$BUILD_DIR/Release-iphoneos/Mapbox.xcframework-ios.signature\"\n fi\n";', + ]); } } - return project; }