Closed atrinh0 closed 2 years ago
I noticed the version I used is 2 years behind, will update to the latest to verify.
The latest tagged version select Xcode 14.0.1
instead of 14.0
(as defined in the workflow file).
After reading the documentation the workflow file was adjusted to wrap the version in single quotes:
steps:
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1.4.1
with:
xcode-version: '14.0'
Which produces the following results:
i updated x-code version as 14.0 on Github action but this version didn't work for me.
Error: Could not find Xcode version that satisfied version spec: '14.0.1'
i updated x-code version as 14.0 on Github action but this version didn't work for me. Error: Could not find Xcode version that satisfied version spec: '14.0.1'
https://github.com/actions/runner-images#available-images
macos-latest
sets the image to macOS 11, which does not support Xcode 14.
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
(add beta
postfix to input if you would like to include beta)You might be confusing by the fact that 14.0
input selects 14.0.1
instead of 14.0 (14.0.0)
. But it is expected because this action provides semver notation for versions and 14.0
means 14.0.x
. So 14.0.1
is selected instead of 14.0.0
.
I think you want to specify xcode-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 to macos-11
. You should use runs-on: macos-12
to use the image with latest Xcode versions.
Thank you kindly for the information and prompt reply.
Context: On GitHub Actions, the following Xcode versions are available:
https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode
Setting the workflow file to the following:
Results in the following: