How to add javascript file to Xcode4

2019-02-06 11:47发布

问题:

I worked with javascript files within Xcode3 before and everything is great, you just need to copy .js into remove the JavaScript file from the Compile Sources build phase and add it to the Copy Bundle Resources build phase just as suggested in this post

the problem now is how do I do the same thing in Xcode4, I can't seem to find the place to do that.

Help please, Thankz all in advance. Pondd

回答1:

Have a check here

  1. Project Navigator (Cmd + 1)
  2. Select your project
  3. Select target
  4. Select "Build Phases" tab, there you will get your desire sections.