Uninstall Xcode 4 when it was installed via the App Store

前端 未结 5 2138
耶瑟儿~
耶瑟儿~ 2021-02-07 22:47

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

相关标签:
5条回答
  • 2021-02-07 23:03

    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.

    0 讨论(0)
  • 2021-02-07 23:07

    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.
    0 讨论(0)
  • 2021-02-07 23:08

    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.

    0 讨论(0)
  • 2021-02-07 23:08

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

    sudo /Developer/Library/uninstall-developer-folder
    
    0 讨论(0)
  • 2021-02-07 23:11

    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 讨论(0)
提交回复
热议问题