Skip to content

Commit d2b0dc2

Browse files
authored
Use xcode-select instead of xcversion (#287)
1 parent fc7ec87 commit d2b0dc2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Bundle Install
2424
run: bundle install
2525
- name: Select Xcode Version
26-
run: xcversion select 12.4
26+
run: sudo xcode-select --switch /Applications/Xcode_12.4.app/Contents/Developer
2727
- name: Prepare Simulator Runtimes
2828
run: Scripts/github/prepare-simulators.sh ${{ matrix.platforms }}
2929
- name: Build and Test Framework
@@ -46,7 +46,7 @@ jobs:
4646
- name: Bundle Install
4747
run: bundle install
4848
- name: Select Xcode Version
49-
run: xcversion select 13.4.1
49+
run: sudo xcode-select --switch /Applications/Xcode_13.4.1.app/Contents/Developer
5050
- name: Build and Test Framework
5151
run: Scripts/build.swift ${{ matrix.platforms }} xcode
5252
- name: Upload Coverage Reports
@@ -61,7 +61,7 @@ jobs:
6161
- name: Bundle Install
6262
run: bundle install
6363
- name: Select Xcode Version
64-
run: xcversion select 11.7
64+
run: sudo xcode-select --switch /Applications/Xcode_11.7.app/Contents/Developer
6565
- name: Lint Podspec
6666
run: bundle exec pod lib lint --verbose --fail-fast --swift-version=5.0
6767
carthage:
@@ -73,7 +73,7 @@ jobs:
7373
- name: Bundle Install
7474
run: bundle install
7575
- name: Select Xcode Version
76-
run: xcversion select 11.7
76+
run: sudo xcode-select --switch /Applications/Xcode_11.7.app/Contents/Developer
7777
- name: Install Carthage
7878
run: brew outdated carthage || brew upgrade carthage
7979
- name: Build Framework
@@ -96,16 +96,16 @@ jobs:
9696
- name: Bundle Install
9797
run: bundle install
9898
- name: Select Xcode Version
99-
run: xcversion select 12.4
99+
run: sudo xcode-select --switch /Applications/Xcode_12.4.app/Contents/Developer
100100
if: ${{ matrix.platforms == 'iOS_14,tvOS_14,watchOS_7' }}
101101
- name: Select Xcode Version
102-
run: xcversion select 12.4
102+
run: sudo xcode-select --switch /Applications/Xcode_12.4.app/Contents/Developer
103103
if: ${{ matrix.platforms == 'iOS_13,tvOS_13,watchOS_6' }}
104104
- name: Select Xcode Version
105-
run: xcversion select 12.4
105+
run: sudo xcode-select --switch /Applications/Xcode_12.4.app/Contents/Developer
106106
if: ${{ matrix.platforms == 'macOS_11' }}
107107
- name: Select Xcode Version
108-
run: xcversion select 11.7
108+
run: sudo xcode-select --switch /Applications/Xcode_11.7.app/Contents/Developer
109109
if: ${{ matrix.platforms == 'macOS_10_15' }}
110110
- name: Prepare Simulator Runtimes
111111
run: Scripts/github/prepare-simulators.sh ${{ matrix.platforms }}
@@ -127,7 +127,7 @@ jobs:
127127
- name: Bundle Install
128128
run: bundle install
129129
- name: Select Xcode Version
130-
run: xcversion select 13.4.1
130+
run: sudo xcode-select --switch /Applications/Xcode_13.4.1.app/Contents/Developer
131131
- name: Prepare Simulator Runtimes
132132
run: Scripts/github/prepare-simulators.sh ${{ matrix.platforms }}
133133
- name: Build Framework

0 commit comments

Comments
 (0)