Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcversion installed not all versions in the output #465

Open
al-cheb opened this issue Aug 18, 2022 · 3 comments
Open

xcversion installed not all versions in the output #465

al-cheb opened this issue Aug 18, 2022 · 3 comments

Comments

@al-cheb
Copy link

al-cheb commented Aug 18, 2022

Description:
We got an issue from customers - actions/runner-images#6108 that xcversion sometimes doesn't list all installed Xcode.

Expected behavior:

13.1    (/Applications/Xcode_13.1.app)
13.2.1  (/Applications/Xcode_13.2.1.app)
13.3.1  (/Applications/Xcode_13.3.1.app)
13.4    (/Applications/Xcode_13.4.app)
13.4.1  (/Applications/Xcode_13.4.1.app)
14.0    (/Applications/Xcode_14.0.app)

Actual behavior:

13.4.1	(/Applications/Xcode_13.4.1.app)	
14.0	(/Applications/Xcode_14.0.app)

Environment:
macOS 12.5 (21G72)
xcversion 2.8.1

Repro steps:
xcversion installed

CI:

jobs:
  build:
    runs-on: macos-12
    steps:
      - run: |
          xcversion installed
@tigerw
Copy link

tigerw commented Aug 30, 2022

This looks similar to #204, #203, #193, #128. I've also seen random failures on Azure DevOps due to xcversion being unable to find an Xcode version, despite it being present under /Applications. The issue seems to be that this tool is using Spotlight to find Xcode (to avoid hardcoding any paths), but sometimes Spotlight indexing isn't complete. Can you check if the Azure images' indexes are fully built? #203 (comment)

@al-cheb
Copy link
Author

al-cheb commented Aug 31, 2022

This looks similar to #204, #203, #193, #128. I've also seen random failures on Azure DevOps due to xcversion being unable to find an Xcode version, despite it being present under /Applications. The issue seems to be that this tool is using Spotlight to find Xcode (to avoid hardcoding any paths), but sometimes Spotlight indexing isn't complete. Can you check if the Azure images' indexes are fully built? #203 (comment)

Thank you for the directions.

@bouthainaghachem
Copy link

I'm facing a similar issue with last runner image version updated two days ago :

System Version: macOS 11.7 (20G817)
Kernel Version: Darwin 20.6.0
Image Version: 20220925.1

I'm setting under my fastlane file the xcversion(version: "13.0") but I'm getting pipeline error : [!] Cannot find an installed Xcode satisfying '13.0'.

Under the readme file is mentionned that MacOS 11.7 support xcode 13.0 ( link for ref: https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md )

Thanks in advance for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants