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; }