From 0de91dcc0c5ccbe988b81ad0058dbbc9ba66cac1 Mon Sep 17 00:00:00 2001 From: Admin Date: Mon, 9 Mar 2026 13:08:30 +0500 Subject: [PATCH] =?UTF-8?q?ci:=20fix=20archive=20=E2=80=94=20install=20pro?= =?UTF-8?q?file=20by=20UUID=20and=20pass=20PROVISIONING=5FPROFILE=20to=20x?= =?UTF-8?q?codebuild?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ios-release.yaml | 5 ++++- justfile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ios-release.yaml b/.gitea/workflows/ios-release.yaml index ef6c079..5e8c281 100644 --- a/.gitea/workflows/ios-release.yaml +++ b/.gitea/workflows/ios-release.yaml @@ -57,8 +57,10 @@ jobs: run: | PP_PATH=$RUNNER_TEMP/profile.mobileprovision echo "$PROFILE_BASE64" | base64 --decode > $PP_PATH + UUID=$(security cms -D -i "$PP_PATH" | plutil -extract UUID raw -) mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles - cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/ + cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/$UUID.mobileprovision + echo "PROFILE_UUID=$UUID" >> $GITHUB_ENV - name: Write App Store Connect API key env: @@ -80,6 +82,7 @@ jobs: env: USER: runner APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + PROFILE_UUID: ${{ env.PROFILE_UUID }} run: just ios-archive - name: Export IPA diff --git a/justfile b/justfile index fce07d8..8161b53 100644 --- a/justfile +++ b/justfile @@ -139,7 +139,7 @@ ios-archive: ios-gen ios-resolve -archivePath {{runner_temp}}/LibNovel.xcarchive \ CODE_SIGN_STYLE=Manual \ DEVELOPMENT_TEAM="$APPLE_TEAM_ID" \ - PROVISIONING_PROFILE_SPECIFIER="LibNovel Distribution" + PROVISIONING_PROFILE="$PROFILE_UUID" # Export an IPA from the archive produced by ios-archive. # Requires ios/LibNovel/ExportOptions.plist.