- Xcode build duration
defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool YES
- Faster build times by leveraging multi-core CPU
defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks `sysctl -n hw.ncpu`
- Flag to emit warnings whenever a function takes longer than some threshold to compile. Add the following to Other Swift Flags
-Xfrontend -warn-long-function-bodies=100
, where 100 is the number of milliseconds you’d like the warning threshold to be
- To enable warn about individual expressions that take a long time to type check, go the Build Settings, “Swift Compiler - Custom Flags”, “Other Swift Flags”, and add:
-Xfrontend -warn-long-expression-type-checking=<limit>
where<limit>
is the lower limit of the number of milliseconds that an expression must take to type check in order for the warning to be emitted.
Created
October 12, 2018 19:12
-
-
Save shahzadmajeed/f12f6263ab56ea70beac38bc113105f2 to your computer and use it in GitHub Desktop.
Xcode customizations
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment