Re: PBXNumberOfParallelBuildSubtasks and Xcode4
Re: PBXNumberOfParallelBuildSubtasks and Xcode4
- Subject: Re: PBXNumberOfParallelBuildSubtasks and Xcode4
- From: Chris Hanson <email@hidden>
- Date: Sat, 30 Jul 2011 14:01:44 -0700
Try this:
% defaults write xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks 1
The user defaults from Xcode should be imported by xcodebuild, but this is how you'd set one for just xcodebuild.
You can also pass user defaults on the xcodebuild command line, like this:
% xcodebuild -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=1
Note that this is different than the usual Cocoa way of specifying user defaults on the command line.
-- Chris
On Jul 30, 2011, at 9:41 AM, Mimika Oh wrote:
> On 19 apr 2011, at 02.57, Serge MONTAIGU wrote:
>
>> In Xcode 3.x I used to set PBXNumberOfParallelBuildSubtasks to 8 and that was fine but it seems Xcode 4 just ignore this setting in com.apple.dt.Xcode.plist
>
> Joar Wingfors wrote:
>> This is the new preference key for controlling the amount of concurrency:
>>
>> IDEBuildOperationMaxNumberOfConcurrentCompileTasks
>
> This does not control it for command line xcodebuild. I am finding xcodebuild is always launching two cc1plus on my 2GB RAM laptop, each one using nearly 1GB and thrashing the VM. I have no choice but to use this machine for some work, and it can't take more memory.
>
> (Note that the PBX_NUMBER_OF_PARALLEL_BUILD_SUBTASKS variable documented at http://developer.apple.com/tools/xcode/dec2002PBReleaseNotes.html no longer works either.)
>
> Is there a way I can prevent xcodebuild from doing this?
>
> (My best workaround at the moment is to wait for Xcode to thrash my machine then "kill -STOP" one of the cc1plus for while, then "kill -CONT" later on.) _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden