Completely uninstalling both versions of Xcode
As usual I typed sudo Library/uninstall-devtools --mode=all
It uninstalled the first version (Beta) properly. Tried the same thing on the older Stable Version which I have installed to "Xcode Stable"
Getting this error Use of uninitialized value $dir_name in substitution (s///) at Library/uninstall-devtools line 153. Use of uninitialized value $developer_dir in concatenation (.) or string at Library/uninstall-devtools line 120
A开发者_C百科nyone else facing this problem? Can I just trash the installation folder?
I got that same error message this morning as well.
It doesn't seem to want to cooperate if run from the same folder it lives, /Developer/Library/
; running it from another location, such as /
, will allow the script to complete the uninstallation without further incident.
Follow these steps and remove all files/directories, to completely uninstall Xcode
- /Applications/Xcode.app
- /Library/Preferences/com.apple.dt.Xcode.plist
- ~/Library/Preferences/com.apple.dt.Xcode.plist
- ~/Library/Preferences/com.apple.dt.Xcode.Playground.plist //if you want to reset play ground
- ~/Library/Preferences/com.apple.dt.xcodebuild.plist
- ~/Library/Caches/com.apple.dt.Xcode
- ~/Library/Application Support/Xcode
- ~/Library/Developer/Xcode
- ~/Library/Developer/CoreSimulator
精彩评论