简体   繁体   English

如何将javascript文件添加到Xcode4

[英]How to add javascript file to Xcode4

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 之前我使用过Xcode3中的javascript文件,一切都很棒,你只需要复制.js就可以从Compile Sources构建阶段删除JavaScript文件,并将其添加到Copy Bundle Resources构建阶段,就像这篇文章中所建议的那样

the problem now is how do I do the same thing in Xcode4, I can't seem to find the place to do that. 现在的问题是如何在Xcode4中做同样的事情,我似乎找不到这样做的地方。

Help please, Thankz all in advance. 请帮助,谢谢所有提前。 Pondd Pondd

Have a check here 在这里检查一下

  1. Project Navigator (Cmd + 1) Project Navigator(Cmd + 1)
  2. Select your project 选择您的项目
  3. Select target 选择目标
  4. Select "Build Phases" tab, there you will get your desire sections. 选择“Build Phases”选项卡,您将获得您想要的部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM