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

Cannot uninstall Xcode 12 beta, Xcode 13 beta, ... #414

Open
pronebird opened this issue Oct 21, 2020 · 8 comments
Open

Cannot uninstall Xcode 12 beta, Xcode 13 beta, ... #414

pronebird opened this issue Oct 21, 2020 · 8 comments

Comments

@pronebird
Copy link

pronebird commented Oct 21, 2020

xcversion is not able to detect different beta versions of Xcode 12:

$ xcversion installed     
12.0.1	(/Applications/Xcode-12.0.1.app)	
12.2	(/Applications/Xcode-12.2.beta.3.app)	
12.2	(/Applications/Xcode-12.2.beta.2.app)	

$ xcversion uninstall '/Applications/Xcode-12.2.beta.2.app'
[!] Version /Applications/Xcode-12.2.beta.2.app is not installed.

$ xcversion uninstall '12.2 beta 2'
[!] Version 12.2 beta 2 is not installed.

$ xcversion --version
2.6.6
@nuomi1
Copy link

nuomi1 commented Jun 25, 2021

➜  Downloads xcversion installed
11.7	(/Applications/Xcode-11.7.app)
12.5.1	(/Applications/Xcode.app)
13.0	(/Applications/Xcode-13.beta.2.app)
13.0	(/Applications/Xcode-13.beta.app)
➜  Downloads xcversion uninstall '13.0'
➜  Downloads xcversion installed
11.7	(/Applications/Xcode-11.7.app)
12.5.1	(/Applications/Xcode.app)
13.0	(/Applications/Xcode-13.beta.app)
➜  Downloads xcversion uninstall '13.0'
➜  Downloads xcversion installed
11.7	(/Applications/Xcode-11.7.app)
12.5.1	(/Applications/Xcode.app)

xcversion only uninstalls the first one.

@pronebird
Copy link
Author

Still broken..

$ xcversion list  

[..redacted..]
13 beta (installed)
13 beta 2 (installed)

$ xcversion uninstall '13 beta'
[!] Version 13 beta is not installed.

$ xcversion --version
2.6.8

@pronebird pronebird changed the title Cannot uninstall Xcode 12 beta Cannot uninstall Xcode 12 beta, Xcode 13 beta, ... Jun 29, 2021
@SpacyRicochet
Copy link

I can confirm this is still an issue on version 2.7.0.

❯ xcversion list
...
12.5.1
13 beta (installed)
13 beta 2 (installed)
13 beta 3
13 beta 4

~ took 20s
❯ xcversion uninstall '13 beta'
[!] Version 13 beta is not installed.

~ took 9s
❯ xcversion --version
2.7.0

@pronebird
Copy link
Author

Suddenly not able to uninstall '13 beta 5' with xcode-install 2.6.8 and 2.8.0:

% xcversion list
...
13 beta
13 beta 2
13 beta 3
13 beta 4
13 beta 5 (installed)
13

% xcversion uninstall '13 beta 5'
[!] Version 13 beta 5 is not installed.

@rogerluan
Copy link
Collaborator

rogerluan commented Oct 4, 2021

Beta versions are not installable anymore AFAIK (after Xcode public version was released). run xcversion update and check if it's still "visible"

@pronebird
Copy link
Author

@rogerluan I am uninstalling the Xcode beta. Beta versions are still displayed after running xcversion update and subsequent xcversion list

@rogerluan
Copy link
Collaborator

Oooh 😮 gotcha, I misunderstood the issue, sorry.

@niil-qb
Copy link

niil-qb commented Sep 16, 2022

I found out that it still is possible to uninstall by skipping the beta part.

So xcversion unintall "14 beta 3" becomes xcversion uninstall "14.0". This is because that's the Xcode version internally. It's probably possible to fix but it will be a bigger change to how xcode-install handles versions internally.

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

No branches or pull requests

5 participants