• 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: Script to build all configurations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to build all configurations?


  • Subject: Re: Script to build all configurations?
  • From: George Warner <email@hidden>
  • Date: Tue, 27 Feb 2007 11:00:20 -0800
  • Thread-topic: Script to build all configurations?

On Mon, 26 Feb 2007 13:31:35 -0800, Andreas Wittenstein
<email@hidden> wrote:
> On 26 Feb 2007, at 13:20, James Walker wrote:
>> How would you write, say, an AppleScript to build all
>> configurations of a project?  (I did do a search of the list
>> archives, and found that I'm not the first person to ask this
>> question, but found no answer.)  I've used AppleScript before, but
>> I guess I don't understand it deeply enough, because when I see an
>> error message like "Can't make every build configuration into type
>> reference", I have no idea what it means.
>>
>> It's not obvious to me how to solve this problem using the
>> xcodebuild command either.  There's an -alltargets option, but no -
>> allconfigurations option.
>
> Here's a sample, where you'd replace <project> with the name of your
> project, <target{0,1,2}> with the names of your targets, and
> <configuration{0,1,2}> with the names of the configurations.

Or...

tell application "Xcode"
    repeat with theProject in projects
        log {"Project: " & name of theProject}
        repeat with theConfig in build configurations of theProject
            log {"Config: " & name of theConfig}
            repeat with theTarget in targets of theProject
                log {"Target: " & name of theTarget}
                tell theTarget to build using theConfig
            end repeat
        end repeat
    end repeat
end tell

--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)


 _______________________________________________
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

  • Prev by Date: Re: multithreading, dual-core
  • Next by Date: Xcode Library Reference - IBPalette, IBInspector
  • Previous by thread: Re: Script to build all configurations?
  • Next by thread: libsystem compatability from os 10.2 to 10.4
  • Index(es):
    • Date
    • Thread