Skip to content

Commit 3ea6f97

Browse files
committed
fix ios build #build-ios
1 parent 0638fdb commit 3ea6f97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ios.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
build:
1919
name: Build
20-
runs-on: macos-latest
20+
runs-on: macos-15
2121
if: ${{ !contains(github.event.head_commit.message, '#build-') || contains(github.event.head_commit.message, '#build-ios') }}
2222
strategy:
2323
matrix:
@@ -26,8 +26,8 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v3
2828
name: Checkout
29-
- name: Select Xcode 15.3
30-
run: sudo xcode-select -s /Applications/Xcode_15.3.app/Contents/Developer
29+
- name: Select Xcode 16.2
30+
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
3131
- name: Install rust version
3232
run: |
3333
rustup install ${{ matrix.rust }} --profile minimal
@@ -37,8 +37,8 @@ jobs:
3737
- name: Configure and start iOS Simulator
3838
run: |
3939
set -e
40-
IOSRUNTIME=com.apple.CoreSimulator.SimRuntime.iOS-17-4
41-
IOSDEV=$(xcrun simctl list 2>&1 | grep com.apple.CoreSimulator.SimDeviceType.iPhone | grep -v ' SE ' | tail -n 1 | tr -d '()' | awk '{ print $NF }')
40+
IOSRUNTIME=$(xcrun simctl list runtimes | grep SimRuntime.iOS | awk '{ print $NF }' | egrep 'iOS-[0-9]{2}-' | sort | tail -n 1)
41+
IOSDEV=$(xcrun simctl list 2>&1 | grep com.apple.CoreSimulator.SimDeviceType.iPhone | awk '{ print $NF }' | tr -d '()' | egrep 'iPhone-[0-9]{2}$' | sort | tail -n 1)
4242
DEVID=$(xcrun simctl create iphone-latest $IOSDEV $IOSRUNTIME)
4343
echo "==== using device $IOSDEV, $IOSRUNTIME ===="
4444
xcrun simctl boot $DEVID

0 commit comments

Comments
 (0)