Skip to content

Instantly share code, notes, and snippets.

@nlutsenko
Last active February 26, 2024 16:10
Show Gist options
  • Star 64 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save nlutsenko/ee245fbd239087d22137 to your computer and use it in GitHub Desktop.
Save nlutsenko/ee245fbd239087d22137 to your computer and use it in GitHub Desktop.
Fast Xcode builds
defaults write xcodebuild PBXNumberOfParallelBuildSubtasks 4
defaults write xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4
defaults write com.apple.xcode PBXNumberOfParallelBuildSubtasks 4
defaults write com.apple.xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4
@medhelp-jenkins
Copy link

FYI it's now:

com.apple.dt.xcodebuild
com.apple.dt.Xcode

@spnkr
Copy link

spnkr commented Oct 5, 2019

on xcode 11 you can see what settings you already have like this:

defaults read com.apple.dt.xcodebuild
defaults read com.apple.dt.Xcode

this is what i use:

defaults write com.apple.dt.xcodebuild PBXNumberOfParallelBuildSubtasks `sysctl -n hw.ncpu`
defaults write com.apple.dt.xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks `sysctl -n hw.ncpu`
defaults write com.apple.dt.Xcode PBXNumberOfParallelBuildSubtasks `sysctl -n hw.ncpu`
defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks `sysctl -n hw.ncpu`

@spnkr
Copy link

spnkr commented Apr 6, 2023

The above also works on Xcode 14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment