• 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: Treating ".js" files like resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Treating ".js" files like resources


  • Subject: Re: Treating ".js" files like resources
  • From: glenn andreas <email@hidden>
  • Date: Wed, 04 Jun 2008 12:52:43 -0500


On Jun 4, 2008, at 12:45 PM, Scott Thompson wrote:

In compiling my application, I have some JavaScript (.js) files which I would like to have simply copied into the resulting application.

XCode, however, sees them as source code files and warns me that it doesn't know what to do with them.

I tried setting up a rule to handle them, but XCode doesn't have a "pass through to resources" compiler. If I don't specify a compiler, then the files are ignored (even though they are listed in the copy resources build phase).

Is there some way to tell the system... "Hey, I know these look like source code, but just pass them through as resources"?

Easy.

The .js files will appear in the "Compile Sources" section of the target.

Drag them out of there and drop them in the "Copy Bundle Resources" section.




Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! JSKit | the easy way to unite JavaScript and Objective C



_______________________________________________
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: Treating ".js" files like resources
      • From: Scott Thompson <email@hidden>
References: 
 >Treating ".js" files like resources (From: Scott Thompson <email@hidden>)

  • Prev by Date: Treating ".js" files like resources
  • Next by Date: Re: Treating ".js" files like resources
  • Previous by thread: Treating ".js" files like resources
  • Next by thread: Re: Treating ".js" files like resources
  • Index(es):
    • Date
    • Thread