From e332af69069b372213d0c839e813b2af030fc7d1 Mon Sep 17 00:00:00 2001 From: Olga Shen Date: Wed, 3 Apr 2024 13:48:45 +0800 Subject: [PATCH] fix(.github/workflows): iOS SDK version issue 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. Set up Python version 3.11 for the macOS environment to prevent installation errors such as "ModuleNotFoundError: No module named 'distutils'." --- .github/workflows/build.yml | 7 ++++++- .github/workflows/firebase-release.yml | 7 ++++++- .github/workflows/pre-release.yml | 9 +++++++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a54943cd..7f9faf9a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,7 +52,7 @@ jobs: ./gradlew assembleDebug ios: - runs-on: macos-latest + runs-on: macos-14 timeout-minutes: 60 if: github.actor != 'dependabot[bot]' @@ -64,6 +64,11 @@ jobs: with: node-version: '20.11.1' + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install Ionic CLI run: npm install -g @ionic/cli diff --git a/.github/workflows/firebase-release.yml b/.github/workflows/firebase-release.yml index efc5aefde..fb33af35d 100644 --- a/.github/workflows/firebase-release.yml +++ b/.github/workflows/firebase-release.yml @@ -69,7 +69,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 timeout-minutes: 120 steps: @@ -79,6 +79,11 @@ jobs: with: node-version: '20.11.1' + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Setup firebase run: | curl -sL https://firebase.tools | bash diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 0f1277e2b..f7fb6f5c6 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -167,7 +167,7 @@ jobs: track: alpha build-ios-prod: - runs-on: macos-latest + runs-on: macos-14 timeout-minutes: 120 continue-on-error: true @@ -178,6 +178,11 @@ jobs: with: node-version: '20.11.1' + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Get release version id: version_check run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT @@ -245,7 +250,7 @@ jobs: path: build/ios-build-number.txt deploy-app-store: - runs-on: macos-latest + runs-on: macos-14 needs: build-ios-prod timeout-minutes: 120 continue-on-error: true