• 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: Automatically adding new files to the project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Automatically adding new files to the project
      • From: Jens Alfke <email@hidden>
References: 
 >Automatically adding new files to the project (From: Pavel Shevaev <email@hidden>)
 >Re: Automatically adding new files to the project (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Block variable syntax related question
  • Next by Date: Error on deleting pointer
  • Previous by thread: Re: Automatically adding new files to the project
  • Next by thread: Re: Automatically adding new files to the project
  • Index(es):
    • Date
    • Thread