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?



On Feb 26, 2007, at 4:31 PM, Andreas Wittenstein wrote:

tell application "Xcode"
tell target "<target0>" of project "<project>" to build using build configuration "<configuration0>"
tell target "<target0>" of project "<project>" to build using build configuration "<configuration1>"
tell target "<target0>" of project "<project>" to build using build configuration "<configuration2>"
tell target "<target1>" of project "<project>" to build using build configuration "<configuration0>"
tell target "<target1>" of project "<project>" to build using build configuration "<configuration1>"
tell target "<target1>" of project "<project>" to build using build configuration "<configuration2>"
tell target "<target2>" of project "<project>" to build using build configuration "<configuration0>"
tell target "<target2>" of project "<project>" to build using build configuration "<configuration1>"
tell target "<target2>" of project "<project>" to build using build configuration "<configuration2>"
quit
end tell

Would you write C code which looked like that? :-)

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

Jim
_______________________________________________
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>)



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.