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
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:
@@ -76,8 +76,11 @@ jobs:
|
|||||||
PP_PATH=$RUNNER_TEMP/profile.mobileprovision
|
PP_PATH=$RUNNER_TEMP/profile.mobileprovision
|
||||||
echo "$PROFILE_BASE64" | base64 --decode > $PP_PATH
|
echo "$PROFILE_BASE64" | base64 --decode > $PP_PATH
|
||||||
UUID=$(security cms -D -i "$PP_PATH" | plutil -extract UUID raw -)
|
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
|
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
||||||
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/$UUID.mobileprovision
|
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
|
- name: Build and upload to TestFlight
|
||||||
env:
|
env:
|
||||||
@@ -88,10 +91,11 @@ jobs:
|
|||||||
APPLE_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
|
APPLE_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
|
||||||
APPLE_KEY_CONTENT: ${{ secrets.ASC_PRIVATE_KEY }}
|
APPLE_KEY_CONTENT: ${{ secrets.ASC_PRIVATE_KEY }}
|
||||||
BUILD_NUMBER: ${{ gitea.run_number }}
|
BUILD_NUMBER: ${{ gitea.run_number }}
|
||||||
PROVISIONING_PROFILE_NAME: LibNovel Distribution
|
|
||||||
working-directory: ios/LibNovel
|
working-directory: ios/LibNovel
|
||||||
run: |
|
run: |
|
||||||
eval "$(rbenv init -)"
|
eval "$(rbenv init -)"
|
||||||
|
echo "Using provisioning profile: $PROFILE_NAME"
|
||||||
|
export PROVISIONING_PROFILE_NAME="$PROFILE_NAME"
|
||||||
bundle exec fastlane beta
|
bundle exec fastlane beta
|
||||||
|
|
||||||
- name: Cleanup keychain
|
- name: Cleanup keychain
|
||||||
|
|||||||
@@ -12,14 +12,13 @@ platform :ios do
|
|||||||
xcodeproj: "LibNovel.xcodeproj"
|
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(
|
update_code_signing_settings(
|
||||||
use_automatic_signing: false,
|
use_automatic_signing: false,
|
||||||
path: "LibNovel.xcodeproj",
|
path: "LibNovel.xcodeproj",
|
||||||
team_id: "GHZXC6FVMU",
|
team_id: "GHZXC6FVMU",
|
||||||
code_sign_identity: "Apple Distribution",
|
code_sign_identity: "Apple Distribution",
|
||||||
targets: ["LibNovel"],
|
targets: ["LibNovel"]
|
||||||
profile_name: ENV["PROVISIONING_PROFILE_NAME"] || "LibNovel Distribution"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Build the app
|
# Build the app
|
||||||
@@ -28,6 +27,7 @@ platform :ios do
|
|||||||
export_method: "app-store",
|
export_method: "app-store",
|
||||||
clean: true,
|
clean: true,
|
||||||
configuration: "Release",
|
configuration: "Release",
|
||||||
|
xcargs: "-allowProvisioningUpdates",
|
||||||
export_options: {
|
export_options: {
|
||||||
method: "app-store",
|
method: "app-store",
|
||||||
signingStyle: "manual",
|
signingStyle: "manual",
|
||||||
|
|||||||
Reference in New Issue
Block a user