Re: Automatically adding new files to the project
Re: Automatically adding new files to the project
- Subject: Re: Automatically adding new files to the project
- From: Pavel Shevaev <email@hidden>
- Date: Sat, 10 Sep 2011 13:43:52 +0400
> Nope. Two options:
> (1) Xcode is scriptable, so you could write an AppleScript to add a new file
> to a project, and then invoke that from a command line.
My initial experience with AppleScript was not very successful. The
script "kinda" worked but not very reliably.
> (2) Google has an open-source tool called “gyp” (Generate Your Projects)
> that creates project files for several different IDEs including Xcode, as
> well as makefiles, from a single cross-platform JSON-like project
> definition. They use this in the Chrome build process. The .gyp files can
> use wildcard expressions for matching multiple source files. Might be
> overkill for your needs, though.
I actually would love something like that. Initially I used CMake for
this purpose and it worked just fine: it generated the Xcode project
file and then it was possible to build the project using xcodebuild
command line tool. Basically I didn't have to open Xcode at all. But
there was a problem: it seems there is no way to deploy the
application to the non-jailbroken device without Xcode. And there is
no command line tool for that :( So each time I rebuild the
application I need to re-open the project in Xcode, select the proper
schema and build it. This is very tiresome especially during fast
prototyping phase.
I guess I need to stick with Xcode then. The question is whether it's
possible to tweak it so that I could keep my own workflow.
> —Jens
--
Best regards, Pavel
_______________________________________________
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