2011-08-26 28 views
0

當我試圖運行在Xcode的JavaScript,我發現一些警告,當我嘗試運行我發現一些警告的JavaScript,如何克服

以下是警告,

[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/binofo.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/excanvas.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/jqtouch.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/jqtouch.min.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/jqtouch.transitions.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/jquery-1.4.4.min.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/jquery-1.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/jquery.1.3.2.min.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/jquery.jqChart.min.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/jquery.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/jquery.sparkline.js' of type sourcecode.javascript for architecture i386 
[WARN]warning: no rule to process file '$(PROJECT_DIR)/js/urchin.js' of type sourcecode.javascript for architecture i386 
+2

[如何將js文件添加到我的xcode項目?](http://stackoverflow.com/questions/2017937/how-to-add-js-file-to-my-xcode-project) –

+0

見http://stackoverflow.com/questions/4430786/warning-no-rule-to-process-javascript-for-architecture-armv7/21924281#21924281 –

回答

6

您是否將這些.js文件添加到www?或插件? 如果www - 在finder中打開你的項目,項目 - > www - >添加所有的.js文件。 現在在xcode中打開你的項目,並檢查www,它應該擴展與所有.js文件。

如果插件 - 當您添加JavaScript文件時,Xcode檢測到該文件是源代碼文件,假定您想編譯它並自動將其添加到編譯源構建階段。

要阻止Xcode嘗試編譯它並使其複製文件,請在「組和文件」列表中展開您的目標,從編譯源構建階段刪除JavaScript文件並將其添加到「複製包資源」構建階段。

它爲我工作。

相關問題