• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PBXNumberOfParallelBuildSubtasks and Xcode4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: PBXNumberOfParallelBuildSubtasks and Xcode4
      • From: Mimika Oh <email@hidden>
References: 
 >Re: PBXNumberOfParallelBuildSubtasks and Xcode4 (From: Mimika Oh <email@hidden>)

  • Prev by Date: Re: Xcode keeps altering my project.pbxproj files
  • Next by Date: xcode 4.1 doesn't allow linking with plugins
  • Previous by thread: Re: PBXNumberOfParallelBuildSubtasks and Xcode4
  • Next by thread: Re: PBXNumberOfParallelBuildSubtasks and Xcode4
  • Index(es):
    • Date
    • Thread