Re: options for generating pbxproj files
Re: options for generating pbxproj files
- Subject: Re: options for generating pbxproj files
- From: Chris Hanson <email@hidden>
- Date: Sat, 5 May 2007 23:17:47 -0700
On May 5, 2007, at 9:02 PM, Tobias Ford wrote:
What are other options that people have used when generating their
project files.
In general, most developers don't generate Xcode projects
programmatically. Instead, they maintain their Xcode projects by
while they work, because they do their work in Xcode. Out of
curiosity, is there a particular reason you generate your project
files rather than work in Xcode directly?
Rather than re-generate your Xcode project from scratch every time,
you might want to consider updating your already-existing project
files only when necessary. I assume you have some sort of "master
file" that describes the structure of your overall project, and you
use this information to generate your Xcode project. You could set up
your build system such that whenever the master file is newer than the
Xcode project, you use the AppleScript interface to compare the two
and make appropriate changes to the Xcode project. This could wind up
being faster; it also wouldn't have the problem with different object
IDs being created every time you generate a brand project file.
Also, note that using the AppleScript interface to interact with Xcode
doesn't necessarily mean you must use AppleScript itself to interact
with Xcode. In the end, AppleScript just winds up sending and
handling responses to AppleEvents. You can write code yourself in any
of a number of languages (both low-level languages like C as well as
higher-level languages) to send and process these events yourself,
which may - for some uses -
It would be useful, though, to file a performance bug against Xcode at
<http://bugreport.apple.com/> and attach a Shark sample or two taken
during the run of your AppleScript. If you use "Time Profile (All
Thread States)" and target Everything instead of just Xcode, it should
be fairly clear from the trace whether the slowdown is in the
execution of the AppleScript or in Xcode's handling of the events.
-- Chris
_______________________________________________
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