File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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
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}"
You can’t perform that action at this time.
0 commit comments