fix: use xcodebuild build + manual ipa packaging (no scheme needed)
This commit is contained in:
@@ -46,28 +46,25 @@ jobs:
|
||||
cd tabatago-swift
|
||||
xcodegen generate
|
||||
|
||||
- name: Archive app
|
||||
- name: Build app
|
||||
run: |
|
||||
cd tabatago-swift
|
||||
xcodebuild -list
|
||||
xcodebuild archive \
|
||||
xcodebuild build \
|
||||
-project TabataGo.xcodeproj \
|
||||
-scheme TabataGo \
|
||||
-target TabataGo \
|
||||
-sdk iphoneos \
|
||||
-destination "generic/platform=iOS" \
|
||||
-configuration Debug \
|
||||
-archivePath ../build/TabataGo.xcarchive \
|
||||
-allowProvisioningUpdates \
|
||||
CODE_SIGN_STYLE=Automatic
|
||||
|
||||
- name: Export IPA
|
||||
- name: Package IPA
|
||||
run: |
|
||||
cd tabatago-swift
|
||||
xcodebuild -exportArchive \
|
||||
-archivePath ../build/TabataGo.xcarchive \
|
||||
-exportPath ../build/ \
|
||||
-exportOptionsPlist ExportOptions.plist \
|
||||
-allowProvisioningUpdates
|
||||
mkdir -p Payload
|
||||
cp -R "$(find build -name '*.app' -type d | head -1)" Payload/
|
||||
zip -r build/TabataGo.ipa Payload/
|
||||
rm -rf Payload
|
||||
|
||||
- name: Deploy to Firebase
|
||||
env:
|
||||
@@ -75,7 +72,7 @@ jobs:
|
||||
run: |
|
||||
echo "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}" | base64 -d > /tmp/firebase-key.json
|
||||
export GOOGLE_APPLICATION_CREDENTIALS=/tmp/f...on
|
||||
firebase appdistribution:distribute build/TabataGo.ipa \
|
||||
firebase appdistribution:distribute tabatago-swift/build/TabataGo.ipa \
|
||||
--app "${FIREBASE_APP_ID}" \
|
||||
--groups "millian-test" \
|
||||
--release-notes "PR: ${{ github.event.pull_request.title }}"
|
||||
|
||||
Reference in New Issue
Block a user