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 install not installing correct version Xcode #384

Closed
H2wk opened this issue Apr 3, 2020 · 5 comments · Fixed by #386
Closed

xcversion install not installing correct version Xcode #384

H2wk opened this issue Apr 3, 2020 · 5 comments · Fixed by #386

Comments

@H2wk
Copy link

H2wk commented Apr 3, 2020

Hi

Tried to update to Xcode 11.4 last night. Updated xcversion list:
Screenshot 2020-04-03 at 09 37 49

Installed xcversion install 11.4
Screenshot 2020-04-03 at 09 37 56

Download was successful, signature passed, and install was successful.
Screenshot 2020-04-03 at 09 38 38

Looking a bit more closely you can see the build identifier is for Xcode 11.4 beta 3

On running xcversion list it appears to have gotten confused with versions.
Screenshot 2020-04-03 at 09 38 48

Hope someone has some ideas around this.

@yoxisem544
Copy link

having this problem too. Installing 11.4 (11N132i) but never intall 11.4 (11E146) the right version.

@Kesin11
Copy link
Contributor

Kesin11 commented Apr 5, 2020

This problem comes from installed Xcode binary does not have any information about itself is a prerelease version (ex: beta, RC) or official version.

xcversion list compare between list of "Xcode" and "InstalledXcode".
"Xcode" created from fetched Developer portal response.. It have version name (ex: 11.4 beta 3).
"InstalledXcode" created from local machine "/Application" and It provides two of versions. ":version" made by "xcodebuild -v" and ":bundle_version: made by Info.plist inside of Xcode app.
So we have not any information to match exactly two of Xcode list.

One workaround is creating new version identifier in "InstalledXcode" that made from installed Xcode app name. The path of Xcode 11.4 beta 3 is "/Applications/Xcode-11.4.beta.3.app", so it is possible to determine if it is the beta version or not.
Of course, if installed Xcode app is renamed, it will not be able to be correctly identified.

Kesin11 pushed a commit to Kesin11/xcode-install that referenced this issue Apr 6, 2020
Kesin11 added a commit to Kesin11/xcode-install that referenced this issue Apr 6, 2020
@robertwijas
Copy link
Contributor

robertwijas commented Apr 7, 2020

Fix has been recently merged to master. #382
Does it mean that it didn't fix the problem?

@SzymonMrozek
Copy link

@robertwijas Yes, it seems that this still installs beta instead release version

@alejandroivan
Copy link

Looks like using xcversion install 11.4 chooses whatever version first matches 11.4, but xcversion install 11.4beta is invalid. Probably searching for 11.4 exactly and then match if there isn't any exact match should be enough for it to work correctly.

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

Successfully merging a pull request may close this issue.

6 participants