From f296f5be242657359de60303b690b80025aa1b4f Mon Sep 17 00:00:00 2001 From: William Candillon Date: Wed, 25 Nov 2026 12:42:00 +0000 Subject: [PATCH] =?UTF-8?q?fix(=F0=9F=8D=8F):=20don't=20name=20build=20sta?= =?UTF-8?q?mps=20.signature=20(ITMS-91063)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Xcode collects *.signature files from build products into the archive, so App Store Connect validated our incremental-build stamps as XCFramework code signatures and rejected the upload. Use a .stamp extension, remove stamps left behind by previous builds, and check the iOS build products for *.signature files in CI. Same fix as wcandillon/react-native-skia#4540. --- .github/workflows/ci.yml | 13 +++++++++++++ packages/webgpu/scripts/prepare-apple-binaries.sh | 12 +++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22ba4be8fb..c015886680 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -130,6 +130,19 @@ jobs: -disableAutomaticPackageResolution \ build | xcpretty + # Xcode collects *.signature files from build products into the archive, + # and App Store Connect rejects any that is not an XCFramework code + # signature (ITMS-91063). No build phase may leave one there. + - name: Check build products for *.signature files + working-directory: apps/example/ios + run: | + signatures=$(find build/Build/Products -name '*.signature') + if [ -n "$signatures" ]; then + echo "::error::Build products contain *.signature files, which App Store Connect rejects (ITMS-91063):" + echo "$signatures" + exit 1 + fi + # A dedicated simulator, created once on the newest iOS runtime, so this # job never shares a device with the other repositories on the machine: # `booted` is ambiguous as soon as another job has its own simulator up. diff --git a/packages/webgpu/scripts/prepare-apple-binaries.sh b/packages/webgpu/scripts/prepare-apple-binaries.sh index 2f2484f554..b7a51eebf0 100644 --- a/packages/webgpu/scripts/prepare-apple-binaries.sh +++ b/packages/webgpu/scripts/prepare-apple-binaries.sh @@ -201,7 +201,7 @@ copy_library() { # The caller holds the assembly lock across both assembly and linker staging. assemble_module() { local root="$CONTAINERS/$MODULE" library existing=true temporary previous='' old_archs platform variant ignored deployment - local signature_file="$CONTAINERS/$MODULE/.slices/$SDK.signature" + local signature_file="$CONTAINERS/$MODULE/.slices/$SDK.stamp" CONTAINER_ROOT="$root" for library in "${MODULE_LIBRARIES[@]}"; do if [[ ! -f "$root/${library%.a}.xcframework/$META_IDENTIFIER/$library" || ! -f "$root/${library%.a}.xcframework/Info.plist" ]]; then existing=false; fi @@ -217,6 +217,7 @@ assemble_module() { previous="$platform-$(printf '%s\n' "$old_archs" | LC_ALL=C sort | paste -sd _ -)${variant:+-$variant}" fi mkdir -p "$temporary/.slices" + rm -f "$temporary/.slices/$SDK.signature" cp "$SOURCE_DIRECTORY/metadata.json" "$temporary/.slices/$SDK.json" for library in "${MODULE_LIBRARIES[@]}"; do local container="$temporary/${library%.a}.xcframework" @@ -225,7 +226,7 @@ assemble_module() { copy_library "$SOURCE_DIRECTORY/$library" "$container/$META_IDENTIFIER/$library" write_xcframework_plist "$container" "$library" "$temporary/.slices" done - printf '%s\n' "$SOURCE_SIGNATURE" > "$temporary/.slices/$SDK.signature" + printf '%s\n' "$SOURCE_SIGNATURE" > "$temporary/.slices/$SDK.stamp" replace_directory "$temporary" "$root" note "Prepared $SDK XCFramework slices ($(printf '%s' "$META_ARCHS" | tr '\n' ' '))" } @@ -237,10 +238,15 @@ assemble_module() { # rather than dynamic frameworks copied into the app's Frameworks directory. # Build-product stamps include SDK/version/source identity, avoiding equal-size # archives from another platform and unnecessary copies on incremental builds. +# Stamps must never use the .signature extension: Xcode collects *.signature +# files from build products into the archive, and App Store Connect rejects +# them as invalid XCFramework code signatures (ITMS-91063). stage_module() { - local library destination temporary stamp="$OUTPUT/.rnwgpu-$MODULE.signature" + local library destination temporary stamp="$OUTPUT/.rnwgpu-$MODULE.stamp" local signature="$SDK:$VERSION:$SOURCE_SIGNATURE" name mkdir -p "$OUTPUT" + # Archive build folders persist across runs; drop stamps from older releases. + rm -f "$OUTPUT/.rnwgpu-$MODULE.signature" for library in "${MODULE_LIBRARIES[@]}"; do name="${library#lib}" destination="$OUTPUT/librnwgpu_$name"