Skip to content

Commit 9a4d2b2

Browse files
Fix script
1 parent a8c3cd4 commit 9a4d2b2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/swift.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,22 @@ jobs:
2020
include:
2121
- platform: "macOS"
2222
destination: "platform=macOS,arch=arm64"
23+
device: "My Mac"
2324
- platform: "iOS"
2425
destination: "platform=iOS Simulator"
26+
device: "iPhone"
2527
- platform: "tvOS"
2628
destination: "platform=tvOS Simulator"
29+
device: "Apple TV"
2730
- platform: "watchOS"
2831
destination: "platform=watchOS Simulator"
32+
device: "Apple Watch"
2933
- platform: "visionOS"
3034
destination: "platform=visionOS Simulator"
35+
device: "Apple Vision"
3136
- platform: "macCatalyst"
3237
destination: "platform=macOS,variant=Mac Catalyst"
38+
device: "My Mac"
3339

3440
steps:
3541
- uses: actions/checkout@v5
@@ -40,7 +46,7 @@ jobs:
4046
DEST="${{ matrix.destination }}"
4147
if [[ "${{ matrix.platform }}" != "macOS" && "${{ matrix.platform }}" != "macCatalyst" ]]; then
4248
DEVICE_ID=$(xcrun simctl list devices available \
43-
| grep "${{ matrix.platform }} Simulator" \
49+
| grep "${{ matrix.device }} Simulator" \
4450
| head -1 \
4551
| awk -F'[()]' '{print $(NF-3)}')
4652
DEST="${DEST},id=${DEVICE_ID}"

0 commit comments

Comments
 (0)