Skip to content

Commit 9df2e44

Browse files
Fix device ID retrieval for non-macOS platforms in Swift CI workflow
1 parent 9a4d2b2 commit 9df2e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/swift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
DEST="${{ matrix.destination }}"
4747
if [[ "${{ matrix.platform }}" != "macOS" && "${{ matrix.platform }}" != "macCatalyst" ]]; then
4848
DEVICE_ID=$(xcrun simctl list devices available \
49-
| grep "${{ matrix.device }} Simulator" \
49+
| grep "${{ matrix.device }}" \
5050
| head -1 \
5151
| awk -F'[()]' '{print $(NF-3)}')
5252
DEST="${DEST},id=${DEVICE_ID}"

0 commit comments

Comments
 (0)