From aec863f6fe0dcdd9594920da85ac408635822307 Mon Sep 17 00:00:00 2001 From: Olga Shen Date: Wed, 3 Apr 2024 13:48:45 +0800 Subject: [PATCH] fix(.github/workflows): upgrade mac OS to 14 Upgrade macOS from version 12 to version 14 to resolve the SDK version issue. The app was built with the iOS 16.2 (20C52) SDK. However, starting April 29, 2024, apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later. The current macOS-latest is macOS 12, which uses Xcode 14. We need to update to macOS 14, which uses Xcode 15. --- .github/workflows/firebase-release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/firebase-release.yml b/.github/workflows/firebase-release.yml index efc5aefde..cef6b190d 100644 --- a/.github/workflows/firebase-release.yml +++ b/.github/workflows/firebase-release.yml @@ -1,9 +1,6 @@ name: firebase-release -on: - push: - tags: - - 'firebase-*' +on: pull_request jobs: distribute-android: @@ -69,7 +66,7 @@ jobs: firebase appdistribution:distribute ./android/app/build/outputs/bundle/release/app-release.aab --app ${APP_ID} --groups "${TEST_GROUPS}" distribute-ios: - runs-on: macos-latest + runs-on: macos-14-large timeout-minutes: 120 steps: @@ -126,7 +123,7 @@ jobs: run: | npx cap sync ios sed -i '' "s/NumbersAppDistributionV6/${PROVISIONING_PROFILE}/g" ios/App/ExportOptions.plist - sed -i '' 's/app-store/ad-hoc/g' ios/App/ExportOptions.plist + sed -i '' 's/app-store/release-testing/g' ios/App/ExportOptions.plist xcodebuild archive -workspace ios/App/App.xcworkspace -scheme App -sdk iphoneos -configuration Release -archivePath build/App.xcarchive -showBuildTimingSummary CURRENT_PROJECT_VERSION=${{ steps.current-time.outputs.formattedTime }} PROVISIONING_PROFILE_SPECIFIER=${PROVISIONING_PROFILE} -allowProvisioningUpdates - name: Export IPA from Xcode Archive