• 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: Aliases or Symbolic Links (Xcode newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aliases or Symbolic Links (Xcode newbie)


  • Subject: Re: Aliases or Symbolic Links (Xcode newbie)
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 26 Jan 2006 21:58:30 -0800


On Jan 26, 2006, at 1:46 PM, Gary Ford wrote:

I have a Java project that includes a language parser class generated by
JavaCC. My builds begin with a custom shell script that checks the
modification time of the grammar file and invokes JavaCC as needed. The
resulting parser file overwrites the previous version on disk, and it is
then compiled along with the rest of the application.


This all worked in ProjectBuilder. In Xcode, however, the builds ignore
the newly created parser Java source file and try to compile the
previous version. This behavior might make sense if Xcode uses aliases
in its source file list, while ProjectBuilder used symbolic links.

Neither is true, so that's not it.

Is there something simple I can add to my shell script or to my Xcode
project that will cause the build to get the new parser file each time?

You can make the input file a dependency of the shell script, by entering its name (or partial path from the project folder) into the "Input Files" list in the Run Script build phase, and also make the output file a member of the Compile Sources build phase.


Providing a build transcript of what Xcode is actually doing, both for your Run Script build phase and for the Compile Sources build phase, might help.

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


References: 
 >Aliases or Symbolic Links (Xcode newbie) (From: Gary Ford <email@hidden>)

  • Prev by Date: Flagging errors from inside a Run Script build phase
  • Next by Date: Re: Xcode - linking libraries based on Configuration
  • Previous by thread: Aliases or Symbolic Links (Xcode newbie)
  • Next by thread: Uhmm, this warning is a bug, or am I missing something?
  • Index(es):
    • Date
    • Thread