File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 23
23
24
24
- name : Build and test
25
25
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"
27
31
xcrun simctl boot "$DEVICE_ID"
28
32
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]}
29
33
You can’t perform that action at this time.
0 commit comments