Uninstall Xcode 4 when it was installed via the App Store

纵饮孤独 提交于 2019-12-20 18:40:11

问题


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?


回答1:


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.




回答2:


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.



回答3:


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.




回答4:


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

sudo /Developer/Library/uninstall-developer-folder



回答5:


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.



来源:https://stackoverflow.com/questions/5344226/uninstall-xcode-4-when-it-was-installed-via-the-app-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!