question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong Xcode version being selected

See original GitHub issue

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

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:

Screenshot 2022-09-20 at 11 23 28

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
maxim-lobanovcommented, Sep 20, 2022

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.

0reactions
atrinh0commented, Sep 20, 2022

Thank you kindly for the information and prompt reply.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found