Wrong Xcode version being selected
See original GitHub issueContext: On GitHub Actions, the following Xcode versions are available:
https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode
Version | Build | Path |
---|---|---|
14.1 (beta) | 14B5024h | /Applications/Xcode_14.1.app |
14.0.1 | 14A400 | /Applications/Xcode_14.0.1.app |
14.0 | 14A309 | /Applications/Xcode_14.0.app |
Setting the workflow file to the following:
steps:
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1.1
with:
xcode-version: 14.0
Results in the following:
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
xcode-select refuses to switch | Apple Developer Forums
So I'm trying to determine if xcodebuild will allow creating thinned app variants from the command line. Do find out, I'd like to...
Read more >xcode-select active developer directory error - Stack Overflow
I got the error: "sudo xcode-select -s /Applications//Xcode.app/Contents/Developer/". To fix this ... Select the option matching your version of Xcode.
Read more >error: tool 'xcodebuild' requires Xcode, but active developer ...
I think xcode-select --install attaches itself to the node version you have installed at the time. So if you're using nvm , asdf...
Read more >Wrong version of Xcode is used in Rider, whereas correct one ...
I have xcode 13 installed by default path and xcode 12.5.1 installed by path /Applications/Xcode_12.5.1.app. Correct version is used while building the app:...
Read more >ERROR: 'xcodebuild' requires Xcode - Apple Stack Exchange
Assuming your Xcode.app is installed in /Applications you can just run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @atrinh0 , I think the latest version of action (
v1
tag) works as expected:xcode-version: 14
->14.0.1
(latest 14.x version)xcode-version: 14.0
->14.0.1
(latest 14.x version)xcode-version: 14.0.0
->14.0.0
(exact version)xcode-version: 14-beta
->14.1.0
(addbeta
postfix to input if you would like to include beta)You might be confusing by the fact that
14.0
input selects14.0.1
instead of14.0 (14.0.0)
. But it is expected because this action provides semver notation for versions and14.0
means14.0.x
. So14.0.1
is selected instead of14.0.0
. I think you want to specifyxcode-version: 14.0.0
for your use-case@BurakEmreGundes, you have a different problem. Looks like you use
macos-latest
image label that still points tomacos-11
. You should useruns-on: macos-12
to use the image with latest Xcode versions.Thank you kindly for the information and prompt reply.