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

@ -71,7 +71,12 @@ profile_for() {
generate_entitlements_from_profile() {
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[@]}"
}
apple_signing_available() {
@ -331,8 +336,8 @@ build_ios_kms_release() {
app_entitlements="${apple_root}/ios-kms/app-entitlements.plist"
ext_entitlements="${apple_root}/ios-kms/extension-entitlements.plist"
generate_entitlements_from_profile "$app_profile" "$app_entitlements"
generate_entitlements_from_profile "$ext_profile" "$ext_entitlements"
generate_entitlements_from_profile "$app_profile" "$app_entitlements" Apple/App/App-iOS.entitlements
generate_entitlements_from_profile "$ext_profile" "$ext_entitlements" Apple/NetworkExtension/NetworkExtension-iOS.entitlements
rm -rf "${app}/_CodeSignature" "${ext}/_CodeSignature"
kms_sign_bundle ios "$ext" "$ext_entitlements"