update workflow archieve
Some checks are pending
Build & Deploy iOS to TestFlight / build-and-deploy (push) Waiting to run
Some checks are pending
Build & Deploy iOS to TestFlight / build-and-deploy (push) Waiting to run
This commit is contained in:
parent
d99dae0ca9
commit
c69a84569b
41
.github/workflows/ios.yml
vendored
41
.github/workflows/ios.yml
vendored
@ -59,6 +59,11 @@ jobs:
|
|||||||
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/$UUID.mobileprovision
|
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/$UUID.mobileprovision
|
||||||
echo "Installed provisioning profile UUID: $UUID"
|
echo "Installed provisioning profile UUID: $UUID"
|
||||||
|
|
||||||
|
# ── Disable SPM ─────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
- name: Disable Swift Package Manager
|
||||||
|
run: flutter config --no-enable-swift-package-manager
|
||||||
|
|
||||||
# ── CocoaPods ───────────────────────────────────────────────────────────
|
# ── CocoaPods ───────────────────────────────────────────────────────────
|
||||||
|
|
||||||
- name: Install CocoaPods Dependencies
|
- name: Install CocoaPods Dependencies
|
||||||
@ -67,41 +72,43 @@ jobs:
|
|||||||
rm -f Podfile.lock
|
rm -f Podfile.lock
|
||||||
pod install --repo-update
|
pod install --repo-update
|
||||||
|
|
||||||
# ── Build ───────────────────────────────────────────────────────────────
|
# ── Build & Archive ─────────────────────────────────────────────────────
|
||||||
|
|
||||||
- name: Build iOS Archive
|
- name: Build iOS (no codesign)
|
||||||
|
run: flutter build ios --release --no-codesign
|
||||||
|
|
||||||
|
- name: Re-run pod install to apply Podfile signing settings
|
||||||
|
run: |
|
||||||
|
cd ios
|
||||||
|
pod install
|
||||||
|
|
||||||
|
- name: Archive with Xcode
|
||||||
env:
|
env:
|
||||||
TEAM_ID: ${{ secrets.TEAM_ID }}
|
TEAM_ID: ${{ secrets.TEAM_ID }}
|
||||||
run: |
|
run: |
|
||||||
# Disable Swift Package Manager — use CocoaPods only (required for plugins not yet SPM-compatible)
|
cat > $RUNNER_TEMP/signing.xcconfig << 'XCCONFIG'
|
||||||
flutter config --no-enable-swift-package-manager
|
CODE_SIGN_STYLE = Manual
|
||||||
|
CODE_SIGN_IDENTITY = iPhone Distribution
|
||||||
|
PROVISIONING_PROFILE_SPECIFIER = Enaklo Owner App Store
|
||||||
|
CODE_SIGNING_REQUIRED = YES
|
||||||
|
XCCONFIG
|
||||||
|
|
||||||
# Build Flutter (no codesign — signing happens in xcodebuild archive)
|
|
||||||
flutter build ios --release --no-codesign
|
|
||||||
|
|
||||||
# Archive with manual signing scoped only to Runner target
|
|
||||||
xcodebuild archive \
|
xcodebuild archive \
|
||||||
-workspace ios/Runner.xcworkspace \
|
-workspace ios/Runner.xcworkspace \
|
||||||
-scheme Runner \
|
-scheme Runner \
|
||||||
-configuration Release \
|
-configuration Release \
|
||||||
-archivePath $RUNNER_TEMP/Runner.xcarchive \
|
-archivePath $RUNNER_TEMP/Runner.xcarchive \
|
||||||
-destination "generic/platform=iOS" \
|
-destination "generic/platform=iOS" \
|
||||||
CODE_SIGN_STYLE="Manual" \
|
-xcconfig $RUNNER_TEMP/signing.xcconfig \
|
||||||
DEVELOPMENT_TEAM="$TEAM_ID" \
|
DEVELOPMENT_TEAM="$TEAM_ID"
|
||||||
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]=Enaklo Owner App Store" \
|
|
||||||
CODE_SIGN_IDENTITY="iPhone Distribution" \
|
|
||||||
CODE_SIGNING_REQUIRED=YES \
|
|
||||||
CODE_SIGNING_ALLOWED=YES
|
|
||||||
|
|
||||||
- name: Export IPA
|
- name: Export IPA
|
||||||
run: |
|
run: |
|
||||||
xcodebuild -exportArchive \
|
xcodebuild -exportArchive \
|
||||||
-archivePath $RUNNER_TEMP/Runner.xcarchive \
|
-archivePath $RUNNER_TEMP/Runner.xcarchive \
|
||||||
-exportPath $RUNNER_TEMP/export \
|
-exportPath $RUNNER_TEMP/export \
|
||||||
-exportOptionsPlist ios/ExportOptions.plist \
|
-exportOptionsPlist ios/ExportOptions.plist
|
||||||
-allowProvisioningUpdates
|
|
||||||
|
|
||||||
# Copy IPA to build output folder
|
|
||||||
mkdir -p build/ios/ipa
|
mkdir -p build/ios/ipa
|
||||||
cp $RUNNER_TEMP/export/*.ipa build/ios/ipa/
|
cp $RUNNER_TEMP/export/*.ipa build/ios/ipa/
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user