Fix iOS App Store upload validation
Some checks failed
Build Rust / Cargo Test (push) Successful in 4m1s
Lint Governance / BEP Metadata (push) Successful in 1s
Build Site / Next.js Build (push) Failing after 4s

This commit is contained in:
Conrad Kramer 2026-06-07 20:11:38 -07:00
parent fd9ea84ea5
commit 0924e40463
7 changed files with 115 additions and 8 deletions

View file

@ -66,7 +66,12 @@ require_tool() {
extract_profile_entitlements() {
local profile="$1"
local output="$2"
Scripts/apple/profile-entitlements.py "$profile" --output "$output"
local template="${3:-}"
local args=("$profile" --output "$output")
if [[ -n "$template" ]]; then
args+=(--template "$template")
fi
Scripts/apple/profile-entitlements.py "${args[@]}"
}
sign_bundle() {
@ -128,8 +133,8 @@ sign_ios() {
cp "$ext_profile" "${ext}/embedded.mobileprovision"
app_entitlements="${work_dir}/app-entitlements.plist"
ext_entitlements="${work_dir}/extension-entitlements.plist"
extract_profile_entitlements "$app_profile" "$app_entitlements"
extract_profile_entitlements "$ext_profile" "$ext_entitlements"
extract_profile_entitlements "$app_profile" "$app_entitlements" Apple/App/App-iOS.entitlements
extract_profile_entitlements "$ext_profile" "$ext_entitlements" Apple/NetworkExtension/NetworkExtension-iOS.entitlements
rm -rf "${app}/_CodeSignature" "${ext}/_CodeSignature"
sign_bundle ios "$ext" "$ext_entitlements"