xcpretty / xcode-install

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

Incorrectly installed 12.2 beta instead of release #418

Closed kohenkatz closed 3 years ago

kohenkatz commented 3 years ago

A few days ago I ran xcversion install 12.2, thinking that it would install the release version (12B45b). Instead it installed version (12B5018i) and Apple rejects my builds because the app store says they were built using a beta version.

How did I end up with a Beta version? How can I correct it so I can build apps that Apple will accept?

KatekovAnton commented 3 years ago

Same for me. Instead of installing 12.2 it installs 12.2 beta somethig. I assume it just compare like version.starts_from(... and takes the first suitable version. Same happens for list - it shows that both 12.2 and 12.2 beta are installed.

kohenkatz commented 3 years ago

I was able to get this fixed by running xcversion uninstall 12.2 (which failed) then manually deleting /Applications/Xcode-12.2.app, running xcversion update, and then running xcversion install 12.2 again. I'm guessing that Apple was briefly providing the wrong version in their portal (which I think has happened before, but I can't find where I saw that).