Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 9 additions & 3 deletions packages/webgpu/scripts/prepare-apple-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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' ' '))"
}
Expand All @@ -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"
Expand Down
Loading