Saturday, August 17, 2013

Resetting XCode settings/preferences

In case of any problem with the IDE and you can't find any solution to solve it and you don't want to waste time in re-installing XCode, you may run the following commands to delete the existing settings/preferences. The following codes was posted by someone in stackoverflow.com and it solves the Storyboard problem after I change the minimum supported iOS version from 5.1 to 4.0.

First, you need to close XCode IDE and then call out the Terminal:

rm -rf $HOME/Library/Application Support/Developer/Shared/Xcode
rm -rf $HOME/Library/Preferences/com.apple.dt.Xcode.*
rm -rf $HOME/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState
rm -rf $HOME/Library/Developer/Xcode

NOTE: the first command is for Xcode 5 only.

3 comments: