From 40993049970eb2907873235756ba0f12e62a13e2 Mon Sep 17 00:00:00 2001 From: Gerald Versluis Date: Wed, 8 Apr 2026 15:26:25 +0200 Subject: [PATCH] fix: embed provisioning profile and target arm64 for TestFlight - Add -r maccatalyst-arm64 to ensure arm64 binary (warning 91167) - Embed provisioning profile in .app bundle (warning 90889) CreatePackage=false skips this; TestFlight requires it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release-apps.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release-apps.yml b/.github/workflows/release-apps.yml index 54fc22ff2..fd287cc00 100644 --- a/.github/workflows/release-apps.yml +++ b/.github/workflows/release-apps.yml @@ -222,6 +222,7 @@ jobs: dotnet publish ${{ env.MAUI_PROJECT_PATH }} \ -f net10.0-maccatalyst \ -c Release \ + -r maccatalyst-arm64 \ -p:ApplicationId=maccatalyst.nl.versluis.polypilot \ -p:CodesignKey="${{ secrets.IOS_CODESIGN_KEY }}" \ -p:CodesignProvision="${{ secrets.MACCATALYST_PROVISIONING_PROFILE_NAME }}" \ @@ -249,6 +250,13 @@ jobs: echo "CFBundleIconName already set: $(/usr/libexec/PlistBuddy -c 'Print :CFBundleIconName' "$PLIST")" fi + - name: Embed provisioning profile + run: | + APP_PATH=$(find PolyPilot/bin/Release/net10.0-maccatalyst -name "PolyPilot.app" -type d | head -1) + # CreatePackage=false doesn't embed the profile. TestFlight requires it. + cp "$RUNNER_TEMP/maccatalyst.provisionprofile" "$APP_PATH/Contents/embedded.provisionprofile" + echo "Embedded provisioning profile in app bundle" + - name: Patch bundle identifier for App Store run: | APP_PATH=$(find PolyPilot/bin/Release/net10.0-maccatalyst -name "PolyPilot.app" -type d | head -1)