Skip to content

Instantly share code, notes, and snippets.

@durul
Last active November 5, 2018 16:12
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save durul/191a6f6a75b7b131cca6d7f2b3f56129 to your computer and use it in GitHub Desktop.
Save durul/191a6f6a75b7b131cca6d7f2b3f56129 to your computer and use it in GitHub Desktop.
Xcode Defaults

Xcode Defaults

Command Line

# Enable internal menu
defaults write com.apple.dt.Xcode ShowDVTDebugMenu -bool YES

# Enable project build time
defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES

# Reduce the number of compile tasks and stop indexing
defaults write com.apple.dt.XCode IDEIndexDisable 1 

# Save all xcode preferences to a file
defaults read com.apple.dt.XCode > xcodeprefs.json

# Show all devices and their information you have plugged in before 
defaults read com.apple.dt.XCode DVTSavediPhoneDevices

# Improve performance
defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 5 

# Improve performance by leveraging multi-core CPU 
defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks `sysctl -n hw.ncpu`

# Delete these settings
defaults delete com.apple.dt.XCode IDEIndexDisable 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment