xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 239 forks source link

Xcode 11 GM never listed as installed #346

Closed patricks closed 5 years ago

patricks commented 5 years ago

I have now installed the new Xcode 11 GM build a few times, but it is never listed as installed.

I did the install via xcversion install '11 GM Seed'

/Applications/Xcode-11.GM.Seed.app: valid on disk
/Applications/Xcode-11.GM.Seed.app: satisfies its Designated Requirement

Xcode 11.0
Build version 11A419c

After the command was successful there is a Xcode version at:

/Applications/Xcode-11.GM.Seed.app

but xcversion installed only listes version 10.3.

I have installed the latest xcversion.

# xcversion --version
2.6.1

Any ideas whats went wrong?

patricks commented 5 years ago

xcversion finally found the installed version.

I looked at your code and figured out, that you are calling:

mdfind "kMDItemCFBundleIdentifier == 'com.apple.dt.Xcode'"

do search for the installed Xcodes. So I ran this command myself and it listed both Xcode versions.

I also opened the Xcode 11 GM once.

After that the 11 GM Seed magically appeared in xcversion 😂