Skip to content

Commit 5486402

Browse files
committed
[MOB-10364] Update according to new discussiom
1 parent beb36f0 commit 5486402

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323

2424
- name: Build and test
2525
run: |
26-
DEVICE_ID=$(xcrun simctl list devices | grep "iPhone 16 Pro" | head -1 | awk -F'[()]' '{print $2}')
26+
xcrun simctl create "iPhone 16 Pro" com.apple.CoreSimulator.SimDeviceType.iPhone-16-Pro com.apple.CoreSimulator.SimRuntime.iOS-18-1
27+
DEVICE_ROW=$(xcrun simctl list devices | grep "iPhone 16 Pro" | head -1)
28+
echo "Found simulator: $DEVICE_ROW"
29+
DEVICE_ID=$(echo "$DEVICE_ROW" | awk -F'[()]' '{print $2}')
30+
echo "Using device ID: $DEVICE_ID"
2731
xcrun simctl boot "$DEVICE_ID"
2832
xcodebuild test -project swift-sdk.xcodeproj -scheme swift-sdk -sdk iphonesimulator -destination "id=$DEVICE_ID" -enableCodeCoverage YES CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
2933

0 commit comments

Comments
 (0)