From 6dfcc32a19bec67e1c48e01836abbca059c96567 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 18 Feb 2025 18:36:54 +0800 Subject: [PATCH] Update destination --- .github/workflows/ios.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index c2765ac..6498051 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -16,14 +16,15 @@ jobs: # - name: 'iOS 16.4 and 17.2 with Xcode 15.2 on macOS 13' # runs-on: macos-13 # xcode: '15.2' + # xcode_name: 'Xcode_15.2.app' # destinations: | # platform=iOS Simulator,name=iPhone 14 Pro,OS=16.4 # platform=iOS Simulator,name=iPhone 15 Pro,OS=17.2 - - name: 'iOS 17.5 and 18.1 with Xcode 15.4 on macOS 14' - runs-on: macos-14 + - name: 'Xcode 16.2 on macOS 15' + runs-on: macos-15 xcode: '16.2' + xcode_name: 'Xcode_16.2.app' destinations: | - platform=iOS Simulator,name=iPhone 15 Pro,OS=17.5 platform=iOS Simulator,name=iPhone 16 Pro,OS=18.1 steps: - uses: actions/checkout@v4 @@ -34,6 +35,12 @@ jobs: - name: iOS Tests working-directory: TestingHost run: | + sudo xcode-select -s /Applications/${{ matrix.config.xcode_name }}/Contents/Developer + xcrun simctl list devices + sudo xcodebuild -runFirstLaunch + sudo xcodebuild -sdk iphonesimulator -version + sudo installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target / + while IFS= read -r destination; do echo "Testing on $destination" xcodebuild test \