• 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: Jim Correia <email@hidden>
  • Date: Mon, 26 Feb 2007 16:40:48 -0500

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Script to build all configurations?
      • From: James Walker <email@hidden>
References: 
 >Script to build all configurations? (From: James Walker <email@hidden>)
 >Re: Script to build all configurations? (From: Andreas Wittenstein <email@hidden>)

  • Prev by Date: Re: Script to build all configurations?
  • Next by Date: Re: multithreading, dual-core
  • Previous by thread: Re: Script to build all configurations?
  • Next by thread: Re: Script to build all configurations?
  • Index(es):
    • Date
    • Thread