Reverting all Xcode settings to their original state

后端 未结 2 671
说谎
说谎 2020-11-29 02:16

I got my Xcode into a non-functional state when I can no longer start a search: once I press ⌘+F, Xcode hangs with a spinning pinwheel, and stops responding. Once

相关标签:
2条回答
  • 2020-11-29 02:33

    This is the officially recommended way to delta Xcode 5's preferences, type in Terminal.app:

    defaults delete com.apple.dt.Xcode
    

    That should restore Xcode to the state of its first launch.

    (for older versions of Xcode the command was defaults delete com.apple.Xcode, i.e. without the dt in the middle).

    0 讨论(0)
  • 2020-11-29 02:35

    Reset all XCode settings from command line by running following commands then restart XCode:

    defaults delete com.apple.dt.Xcode
    rm -rf $HOME/Library/Application Support/Developer/Shared/Xcode
    rm -rf $HOME/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState
    rm -rf $HOME/Library/Preferences/com.apple.dt.Xcode.*
    
    0 讨论(0)
提交回复
热议问题