Skip to content

Instantly share code, notes, and snippets.

@nlutsenko
Last active June 16, 2026 22:44
Show Gist options
  • Select an option

  • Save nlutsenko/ee245fbd239087d22137 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

FYI it's now:

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

@spnkr

spnkr commented Oct 5, 2019

Copy link
Copy Markdown

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

spnkr commented Apr 6, 2023

Copy link
Copy Markdown

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