Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warning : No Rule to process javascript for architecture armv7

I am getting a warning when I try to run JavaScript with Cocoa:

warning: no rule to process file '$(PROJECT_DIR)/myJavaScriptFile.js' of type sourcecode.javascript for architecture armv7
like image 535
Ksinak Avatar asked Dec 13 '10 16:12

Ksinak


3 Answers

remove myJavaScriptFile.js from your Xcode Product Target\'Compile Sources' and it'll be ok

like image 130
Xiao Xiao Avatar answered Nov 20 '22 05:11

Xiao Xiao


Remove .js file from Compile Sources and add to Copy Bundle Resources in a Build Phases page (if you want to access this file in your application through

[NSBundle mainBundle] pathForResource:@"myJavaScriptFile.js"]

)

like image 45
FunkyKat Avatar answered Nov 20 '22 06:11

FunkyKat


I propose a work around I use, which streamline the process when you have to update on regular basis your javascript, by getting rid of any additional manual operation.

Say you have a file name code.js included in a code.html.

simply rename code.js into code.js.html and don't forget to change your inclusion tag in the html as follows:

<script src="code.js"></script> 

into

<script src="code.js.html"></script> 

Then you simply have to add code.js.html and code.html to your resource straight into xcode and voila!

like image 2
Stéphane de Luca Avatar answered Nov 20 '22 05:11

Stéphane de Luca