Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to build all configurations?



Jim Correia wrote:

How about a script which loops over the targets and configuration, so it doesn't need to be customized per project, or when the project changes:

tell application "Xcode"
    tell project 1
        set zTargets to every target
        set zConfigurations to every build configuration
        repeat with zTarget in zTargets
            repeat with zConfiguration in zConfigurations
                tell zTarget to build using zConfiguration
            end repeat
        end repeat
    end tell
end tell

Thanks, that's great. I'd add a "with timeout" block for projects that take a while to build.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden


This email sent to email@hidden
References: 
 >Script to build all configurations? (From: James Walker <email@hidden>)
 >Re: Script to build all configurations? (From: Andreas Wittenstein <email@hidden>)
 >Re: Script to build all configurations? (From: Jim Correia <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.