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

Installed version dissappeared #128

Open
yakimant opened this issue Apr 20, 2016 · 4 comments
Open

Installed version dissappeared #128

yakimant opened this issue Apr 20, 2016 · 4 comments

Comments

@yakimant
Copy link

Xcode 7.3 disappeared somehow from the list of installed version(
Please help to return it.

$ xcversion installed
7.2     (/Applications/Xcode7.2.app)
$ xcversion selected
Xcode 7.3
Build version 7D175
$ xcode-select -p
/Applications/Xcode-7.3.app/Contents/Developer
$ mdls -name kMDItemFSName -name kMDItemCFBundleIdentifier -name kMDItemVersion /Applications/Xcode-7.3.app
kMDItemCFBundleIdentifier = "com.apple.dt.Xcode"
kMDItemFSName             = "Xcode-7.3.app"
kMDItemVersion            = "7.3"
$ mdls -name kMDItemFSName -name kMDItemCFBundleIdentifier -name kMDItemVersion /Applications/Xcode.app
kMDItemCFBundleIdentifier = "com.apple.dt.Xcode"
kMDItemFSName             = "Xcode-7.3.app"
kMDItemVersion            = "7.3"
$ mdls -name kMDItemFSName -name kMDItemCFBundleIdentifier -name kMDItemVersion /Applications/Xcode7.2.app
kMDItemCFBundleIdentifier = "com.apple.dt.Xcode"
kMDItemFSName             = "Xcode7.2.app"
kMDItemVersion            = "7.2"
$ ls -asld /Applications/Xcode*
0 drwxr-xr-x  3 qa  admin  102 Mar  3 05:55 /Applications/Xcode-7.3.app
8 lrwxr-xr-x  1 qa  admin   27 Apr 11 13:04 /Applications/Xcode.app -> /Applications/Xcode-7.3.app
0 drwxr-xr-x  4 qa  admin  136 Apr  6 12:53 /Applications/Xcode7.2.app
@yakimant
Copy link
Author

It appeared back. Closing for now.
If somebody knows, how to fix it manually - please comment here!

@neonichu
Copy link
Collaborator

xcversion uses Spotlight to find installed Xcodes, so my theory would be that reindexing was still happening. I also noticed Spotlight being unreliable once you're low on diskspace.

@yakimant
Copy link
Author

@neonichu, it would be nice to reopen the ticket, as we have this issue from time to time.
And because we select xcode version before every build it can break the build, corrupt the ticket and spend devs/qa time.

Is there any other way to find out installed Xcodes other than unreliable Spotlight?

@yakimant
Copy link
Author

@neonichu, i've fixed the issue by adding /Applications folder to Spotlight exclude list and removing it back. After 5 minutes missing Xcode appeared back.

I like xcode-install tool for installing Xcode and simulators, but I will rely on xcode-select for switching.

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

2 participants