开发者

Uninstall Xcode 4 when it was installed via the App Store

开发者 https://www.devze.com 2023-02-18 15:35 出处:网络
I understand that those who installed Xcode 4 via the developer site are able to uninstall via /Developer/Library/uninstall-devtools –mode=all, however I installed via the App store and there doesn\'

I understand that those who installed Xcode 4 via the developer site are able to uninstall via /Developer/Library/uninstall-devtools –mode=all, however I installed via the App store and there doesn't seem to be an executable with the word "uninstall" in the name anywhere in the Developer开发者_运维知识库 folder at all. Any suggestions on how I should go about uninstalling Xcode 4?


This help for Xcode before MAS install /Library/Developer/Shared/uninstall-devtools

If you install it from MAS you can remove from launchpad, but also need to remove some folders** and files created by this app, you can use some helper application that found this files and safely remove it :)

** ex.: ~/Library/Developer, ~/Library/Application Support/Xcode, ~/Library/iPhone Simulator, Logs and etc.


From the above comment, the correct way is to:

  1. Run sudo /Developer/Library/uninstall-devtools –mode=all
  2. Delete "/Applications/Install Xcode" if you want the app store to allow you to reinstall it.


If you have installed xcode from Mac App store, then you need to delete it from Launch pad. You can do this by locating xcode icon in launch pad, long click on the icon till it starts dancing. Then delete it and wait for a while till the xcode.app is deleted from /Application. If you manually delete xcode.app from /Application, App store will continue to think its installed and will not allow you to reinstall in future.


In our installs of xCode 4 from the App Store, we are able to use:

sudo /Developer/Library/uninstall-developer-folder


You must uninstall first the

sudo /Library/Developer/Share/uninstall-devtools –mode=all

It might be something else in your particular case so maybe you can try

locate uninstall-devtools to find where the script is placed.

Then you can find the version you need of xcode from https://developer.apple.com/downloads/index.action

IMPORTANT: If you are going to install a previous version of the Developer Tools, be sure to restart the machine after installing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号