当我试图在xcode中运行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
Run Code Online (Sandbox Code Playgroud)
小智 6
你是否将这些.js文件添加到www?还是插件?如果www - 在finder中打开你的项目,项目 - > www - >添加所有.js文件.现在在xcode中打开你的项目并检查www,它应该扩展所有的.js文件.
如果插件 - 当您添加JavaScript文件时,Xcode会检测到该文件是源代码文件,假设您要编译它并自动将其添加到Compile Sources构建阶段.
要阻止Xcode尝试编译它并使其复制文件,请在"组和文件"列表中展开目标,从"编译源"构建阶段中删除JavaScript文件,并将其添加到"复制包资源"构建阶段.
它对我有用.
| 归档时间: |
|
| 查看次数: |
3146 次 |
| 最近记录: |