fix: extract and use actual profile name from mobileprovision file
Some checks failed
CI / Scraper / Test (pull_request) Successful in 13s
CI / UI / Build (pull_request) Successful in 16s
CI / Scraper / Lint (pull_request) Successful in 18s
CI / Scraper / Docker Push (pull_request) Has been skipped
CI / UI / Docker Push (pull_request) Has been skipped
iOS CI / Test (push) Has been cancelled
iOS CI / Build (push) Has been cancelled
iOS CI / Build (pull_request) Has been cancelled
iOS CI / Test (pull_request) Has been cancelled
iOS Release / Release to TestFlight (push) Failing after 1m3s

This commit is contained in:
Admin
2026-03-09 18:27:29 +05:00
parent 6365b14ece
commit e4c72011eb
2 changed files with 8 additions and 4 deletions

View File

@@ -76,8 +76,11 @@ jobs:
PP_PATH=$RUNNER_TEMP/profile.mobileprovision
echo "$PROFILE_BASE64" | base64 --decode > $PP_PATH
UUID=$(security cms -D -i "$PP_PATH" | plutil -extract UUID raw -)
PROFILE_NAME=$(security cms -D -i "$PP_PATH" | plutil -extract Name raw -)
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/$UUID.mobileprovision
echo "Installed profile: $PROFILE_NAME (UUID: $UUID)"
echo "PROFILE_NAME=$PROFILE_NAME" >> $GITHUB_ENV
- name: Build and upload to TestFlight
env:
@@ -88,10 +91,11 @@ jobs:
APPLE_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
APPLE_KEY_CONTENT: ${{ secrets.ASC_PRIVATE_KEY }}
BUILD_NUMBER: ${{ gitea.run_number }}
PROVISIONING_PROFILE_NAME: LibNovel Distribution
working-directory: ios/LibNovel
run: |
eval "$(rbenv init -)"
echo "Using provisioning profile: $PROFILE_NAME"
export PROVISIONING_PROFILE_NAME="$PROFILE_NAME"
bundle exec fastlane beta
- name: Cleanup keychain

View File

@@ -12,14 +12,13 @@ platform :ios do
xcodeproj: "LibNovel.xcodeproj"
)
# Update code signing settings to use automatic signing with team
# Update code signing settings - let Xcode automatically select the profile
update_code_signing_settings(
use_automatic_signing: false,
path: "LibNovel.xcodeproj",
team_id: "GHZXC6FVMU",
code_sign_identity: "Apple Distribution",
targets: ["LibNovel"],
profile_name: ENV["PROVISIONING_PROFILE_NAME"] || "LibNovel Distribution"
targets: ["LibNovel"]
)
# Build the app
@@ -28,6 +27,7 @@ platform :ios do
export_method: "app-store",
clean: true,
configuration: "Release",
xcargs: "-allowProvisioningUpdates",
export_options: {
method: "app-store",
signingStyle: "manual",