how to modify the number of parallel compilation with Xcode
I am not talking about distributed builds, but on simultaneous compilations of a set of source files from a single project, on a single computer.
(currently using Xcode 3.2.4)
5 Solutions Collect From Internet About “how to modify the number of parallel compilation with Xcode”
PBXNumberOfParallelBuildSubtasks user default, for example:
defaults write com.apple.XCode PBXNumberOfParallelBuildSubtasks 6
For Xcode 4 you must set the IDEBuildOperationMaxNumberOfConcurrentCompileTasks user default, for example:
defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4
Note the “dt”. This won’t affect xcodebuild on the command line. To do that, use something like
xcodebuild -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=4 ...
Just for the record – developers at our site using XCode 4 discovered that parallel compilation gets disabled if McAfee anti-virus is installed. Builds that should finish in 15-20 minutes took nearly five hours until McAfee was removed.
For command line builds, I’ve tested the 2011/Jul mailing list post that Mimika linked, and deployed it on our (Xcode 4.2, on Snow Leopard) build server to save memory like so:
defaults write xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks 1
I don’t know why it drops from four to two, but I also found that quitting Xcode 6, then in Terminal entering “defaults write xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4” got me back to four when Xcode is restarted.
- .pch File in Xcode 6.1
- Programmatically navigate to another view controller/scene
- What to do with apps running on iOS 5 and below for identifierForVender
- Exception Breakpoint in Xcode
- What's the difference between “Architectures” and “Valid Architectures” in Xcode Build Settings?
- Newly created NSManagedObject returns temporary objectID even after save
- Parameters after opening bracket
- How should I reason when I have to choose between a class, struct and enum in Swift?
- iPhone4 how to find out if the power cable is plugged in?
- Open iPhone/iPad settings panel
- Is there any way of locking an object in Swift like in C#
- How to detect and make hyperlinks/mentions/hashtags clickable in UILabel?
- 0 Entitlements when Exporting App for Enterprise Distribution
- Using Swift with AVPlayer, how do you add and remove a video via code?
- UITextView wraps text when built with iOS 7 SDK