ci: fix archive — install profile by UUID and pass PROVISIONING_PROFILE to xcodebuild
Some checks failed
CI / Scraper / Test (pull_request) Successful in 9s
iOS CI / Test (push) Has been cancelled
iOS CI / Build (push) Has been cancelled
CI / Scraper / Lint (pull_request) Successful in 22s
CI / UI / Build (pull_request) Successful in 21s
CI / Scraper / Docker Push (pull_request) Has been skipped
CI / UI / Docker Push (pull_request) Has been skipped
iOS CI / Build (pull_request) Successful in 1m50s
iOS Release / Release to TestFlight (push) Failing after 32s
iOS CI / Test (pull_request) Has been cancelled

This commit is contained in:
Admin
2026-03-09 13:08:30 +05:00
parent 8e3e9ef31d
commit 0de91dcc0c
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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.