kwigbo

Adventures in iOS!

2 notes

Problems With .js Files in XCode

Do you find your self seeing the following error after adding a javascript file to your project?

warning: no rule to process file ‘$(PROJECT_DIR)/Resources/textView.js’ of type sourcecode.javascript for architecture armv6

Fear not for this is an easy fix. Select the .js file and click the details tab. In the detail view uncheck the bullseye column (the last to the right). This column when checked indicates the file is compiled code.

Alternatively, you can just expand your target and remove the .js file from the “Compiled Sources”.

For some reason when you add a javascript file it is automatically set to be a compiled source. Don’t ask me why, and if there is anyone who knows a way to make XCode stop adding .js files here I would love to know.

  1. steroids-uk-co reblogged this from kwigbo
  2. buy-steroids-uk-dot-co reblogged this from kwigbo
  3. kwigbo posted this