Created
September 18, 2018 15:57
-
-
Save AntonTheDev/21481b57b1dce2341b88df1025caec51 to your computer and use it in GitHub Desktop.
XCode Hidden Speed Settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Found these here... Seeems useful to have around every once in a blue moon (new machine) | |
| https://stackoverflow.com/questions/37076718/increase-speed-to-xcode-builds-by-terminal-commands-only | |
| There are more tips and tricks about how to decrease build timing. | |
| Some of them are too old, other working only with simulator devices, other for example explain how to disable the code coverage support but always by make changes to the layout settings. | |
| My purpose is to launch few effective terminal command lines or a good script (the last choice would be much better) so without changing Xcode layout settings, without adding libraries.., only by-terminal actions. | |
| Now this is what I've found during years: | |
| defaults write com.apple.dt.Xcode ShowBuildOperationDuration <YES/NO> | |
| (this is just only for debug, not effective results) | |
| defaults write com.apple.dt.XCode IDEIndexDisable <0/1> | |
| (this command disable indexing process) | |
| defaults write com.apple.Xcode PBXNumberOfParallelBuildSubtasks <1|2|4|8|16|..> | |
| (the number of threads Xcode will use to perform tasks defaults to the same number of cores your CPU has -> default value = CPU cores) | |
| defaults write com.apple.Xcode XCMaxNumberOfDistributedTasks <desired-number> | |
| (The user default XCMaxNumberOfDistributedTasks in the com.apple.Xcode domain controls how many concurrent compile jobs Xcode will send to the DNB system at once ; 25 by default) | |
| Do you know other type of useful efficient command lines to adding or a good script to launching (for example any code that check also CPU cores and correctly set PBXNumberOfParallelBuildSubtasks value) ? | |
| I've found more arguments to set you can easily find here below doing: | |
| defaults read com.apple.dt.XCode > xcodeprefs.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment