Closed ygit closed 2 years ago
Hello @ygit , Xcode 13 is supported for a long time already. This action don't need to be updated everytime when new Xcode is released. It just selects between Xcode versions installed on Hosted images.
Readme of this repo contains example:
jobs:
build:
runs-on: macos-11
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.0'
I was getting the same error, and I couldn't figure out why.
Switching Xcode to version '13'...
5
Available versions:
6
┌─────────┬──────────┬─────────────┬─────────────┬────────┬──────────────────────────────────┐
7
│ (index) │ version │ buildNumber │ releaseType │ stable │ path │
8
├─────────┼──────────┼─────────────┼─────────────┼────────┼──────────────────────────────────┤
9
│ 0 │ '12.4.0' │ '12D4e' │ 'GM' │ true │ '/Applications/Xcode_12.4.app' │
10
│ 1 │ '12.3.0' │ '12C33' │ 'GM' │ true │ '/Applications/Xcode_12.3.app' │
11
│ 2 │ '12.2.0' │ '12B45b' │ 'GM' │ true │ '/Applications/Xcode_12.2.app' │
12
│ 3 │ '12.1.1' │ '12A7605b' │ 'GM' │ true │ '/Applications/Xcode_12.1.1.app' │
13
│ 4 │ '12.1.0' │ '12A7403' │ 'GM' │ true │ '/Applications/Xcode_12.1.app' │
14
│ 5 │ '12.0.1' │ '12A7300' │ 'GM' │ true │ '/Applications/Xcode_12.app' │
15
│ 6 │ '11.7.0' │ '11E801a' │ 'GM' │ true │ '/Applications/Xcode_11.7.app' │
16
│ 7 │ '11.6.0' │ '11E708' │ 'GM' │ true │ '/Applications/Xcode_11.6.app' │
17
│ 8 │ '11.5.0' │ '11E608c' │ 'GM' │ true │ '/Applications/Xcode_11.5.app' │
18
│ 9 │ '11.4.1' │ '11E503a' │ 'GM' │ true │ '/Applications/Xcode_11.4.1.app' │
19
│ 10 │ '11.3.1' │ '11C505' │ 'GM' │ true │ '/Applications/Xcode_11.3.1.app' │
20
│ 11 │ '11.2.1' │ '11B500' │ 'GM' │ true │ '/Applications/Xcode_11.2.1.app' │
21
│ 12 │ '10.3.0' │ '10G8' │ 'GM' │ true │ '/Applications/Xcode_10.3.app' │
22
└─────────┴──────────┴─────────────┴─────────────┴────────┴──────────────────────────────────┘
23
Error: Could not find Xcode version that satisfied version spec: '13'
Then I looked at the docs for macOS hosts on GitHub Actions and noticed that macos-latest
actually points to Catalina. When I updated runs-on
to macos-11
(Big Sur), it worked 👍
Thanks for the great tool! Much appreciated 🙏
@ashfurrow , yes, it could be confused. They are migrating macos-latest
to 11.0 right now but it is pretty long process :(
@maxim-lobanov When is support for Xcode 13 coming?