Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The answer can be traced from the warning I was getting in XCode:</p> <blockquote> <p>warning: no rule to process file '$(PROJECT_DIR)/html/orientation.js' of type sourcecode.javascript for architecture i386</p> </blockquote> <p>XCode setup *.js javascript as some type of source code needed to be compiled in the application when I wanted to include it as a resource so I solved it by doing 2 things.</p> <ol> <li>Select .js file and in the "Detail" view unselect the bullseye column indicating it is compiled code</li> <li>In the "Groups &amp; files" view expand the "Targets" tree and expand the application then go to "Copy Bundle Resources" and drag the *.js files into it</li> </ol> <p>The Apple dev forums has a posted solution:</p> <ul> <li><a href="https://devforums.apple.com/message/32282#32282" rel="noreferrer">UIWebView and JavaScript</a></li> </ul> <blockquote> <p>It appears that you are getting bit by the "Xcode thinks that .js are things to be compiled" feature. Basically, Xcode thinks that the script should somehow be run or compiles, so marks it as part of the source code. Source code, of course, is not copied into the resources.</p> <p>So you need to do two things - select the .js file in your project, and turn off the checkbox that indicates that it is compiled (the "bullseye" column). If you don't do this, you'll get a warning in your build log about being unable to compile the file (which should be your first warning - always try to figure out and and correct any and all warning that appear in your build).</p> <p>Then drag it and drop it in the target's "Copy Bundle Resources".</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload