0

Was wondering if anyone knew how to load html5 pages which use javascript into a webview in XCode. I keep getting errors and the main one is warning: no rule to process file '$(PROJECT_DIR)/donk/javascript/highlight.pack.js' of type sourcecode.javascript for architecture i386 I have seen apps that can do this. Can someone please let me know how to do this? Would be forever greatful.

Cheers!

Masterminder
  • 1,127
  • 7
  • 21
  • 31

1 Answers1

0

The warning you are getting is probably due to the build settings.

See this similar answer:

compilation warning: no rule to process file for architecture i386

Community
  • 1
  • 1
nuxibyte
  • 1,434
  • 1
  • 13
  • 16
  • Hey errolc, I looked at the answer which states "to not put files in the tab Build Phases". I am not sure what that means? – Masterminder Jul 21 '12 at 17:20
  • In Xcode select the project in the Project Navigator, then select the Target. Select the Build Phases tab, make sure the .js files are not listed in the Compile Sources section. – nuxibyte Jul 21 '12 at 17:33
  • Okay slightly confused as to how I am to go about making this work. I have an html page, an image, and a javascript file to make the html5 page work. So where am i supposed to put all of these files then? :( – Masterminder Jul 21 '12 at 18:02
  • Sorry I can't help you there. My initial comment was trying to help remove the warning. – nuxibyte Jul 21 '12 at 18:30
  • Could this help? I think you need to put your page in your resources folder. http://stackoverflow.com/questions/4645414/how-can-i-load-a-local-html-file-into-the-uiwebview – nuxibyte Jul 22 '12 at 11:19
  • Yes I figured it out. Thank you errolc for your feedback – Masterminder Jul 23 '12 at 17:54