Skip to content

Commit 3005246

Browse files
Fix iOS simulator destination in CI workflow to use generic device identifier
Co-authored-by: KevinTCoughlin <706967+KevinTCoughlin@users.noreply.github.com>
1 parent 78196c2 commit 3005246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/xcode.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
file_to_build: ${{ env.file_to_build }}
6363
run: |
6464
# Clean and build the iOS target
65-
xcodebuild clean build -scheme "$scheme" -$filetype "$file_to_build" -destination "platform=iOS Simulator,OS=latest,name=iPhone" | xcpretty && exit ${PIPESTATUS[0]}
65+
xcodebuild clean build -scheme "$scheme" -$filetype "$file_to_build" -destination "platform=iOS Simulator,name=Any iOS Simulator Device" | xcpretty && exit ${PIPESTATUS[0]}
6666
6767
- name: Test
6868
env:
@@ -71,7 +71,7 @@ jobs:
7171
file_to_build: ${{ env.file_to_build }}
7272
run: |
7373
# Run tests
74-
xcodebuild test -scheme "$scheme" -$filetype "$file_to_build" -destination "platform=iOS Simulator,OS=latest,name=iPhone" -testPlan "tictactoeTests" | xcpretty && exit ${PIPESTATUS[0]}
74+
xcodebuild test -scheme "$scheme" -$filetype "$file_to_build" -destination "platform=iOS Simulator,name=Any iOS Simulator Device" -testPlan "tictactoeTests" | xcpretty && exit ${PIPESTATUS[0]}
7575
7676
- name: Build for macOS
7777
env:

0 commit comments

Comments
 (0)