Re: add system-wide custom build rules?
Re: add system-wide custom build rules?
- Subject: Re: add system-wide custom build rules?
- From: Jerry Krinock <email@hidden>
- Date: Wed, 30 Dec 2009 14:11:29 -0800
On 2009 Dec 30, at 05:04, Dirk Becker wrote:
> Is there a way to define those custom build rules system wide rather than per-target?
I believe so. Have you read this?
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/300-Build_Settings/bs_build_settings.html#//apple_ref/doc/uid/TP40002691-BACIFADG
In Fig. 3-1, note the "Application Settings layer". It's a misnomer -- I'd call it "User Settings layer".
> Alternatively, is there any way to automate such work on XCode projects?
> I had a look at the AppleScript Dictionary but found nothing but text rulers ...
You must be looking at the wrong dictionary. My Xcode AppleScript dictionary has 21 suites, starting with Standard Suite, including 8 Xcode xxx Suites, and ending with Type Definitions.
There is also a command-line tool, xcodebuild, but it is rather limited. I use xcodebuild when possible; it's nicer because it runs in the background. But Xcode's AppleScript is more powerful than xcodebuild.
> It would also be helpful if I could specify the default build phase per rule, currently added sources end up in "Copy Bundle Resources" rather than in "Compile Sources".
I believe they go into whatever group you have selected, but I'm not sure. Also, you can drag them in directly from Finder to wherever you want, instead of using the Add to Project menu item.
_______________________________________________
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