We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 277a6ca commit 546209dCopy full SHA for 546209d
.github/workflows/build-watchos.yml
@@ -21,13 +21,13 @@ jobs:
21
22
- name: Select watchOS Simulator
23
run: |
24
- echo "Listing all available devices:"
25
- xcrun simctl list devices available
+ echo "Listing all watchOS devices:"
+ xcrun simctl list devices | grep -A 20 "watchOS"
26
27
- echo -e "\nSearching for watchOS simulators:"
28
- WATCH_SIMULATOR_ID=$(xcrun simctl list devices available | \
29
- grep -i "watchOS" | \
30
- grep -i "Apple Watch" | \
+ echo -e "\nSearching for watchOS simulator:"
+ WATCH_SIMULATOR_ID=$(xcrun simctl list devices | \
+ grep "Apple Watch" | \
+ grep -v "Unavailable" | \
31
head -1 | \
32
grep -oE '[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}')
33
0 commit comments