Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>*Dependency Analysis Warning: warning: no rule to process file '$(PROJECT_DIR)/Web/gameFolder/js/input/MouseInputHandler.js' of type sourcecode.javascript for architecture i386* </code></pre> <p>After you've added your html-related files to the project, *.js files were added to the "compile sources" list in "build phases". So the compiler tried to compile them, but he cannot, therefore the warning (plus they don't really get copied to the bundle). This default behavior once cost me good few minutes of exasperation...</p> <p>Remove them (*.js files) from this list and add to "copy bundle resources"</p> <p>Another thing is - in the bundle, all your resources' hierarchy gets "flattened". I mean, if you had your files like that:</p> <pre><code>index.html js/lib/jquery.js img/circle.png </code></pre> <p>you've had probably done something like</p> <pre><code>&lt;img src="img/circle.png"&gt; </code></pre> <p>but it won't work in webview. You'll have to referr to the very same file like that:</p> <pre><code>&lt;img src="circle.png"&gt; </code></pre> <p>because the webview sees your files in the bundle in that way:</p> <pre><code>index.html jquery.js circle.png </code></pre> <p>Yet another thing - you load your web content by loading the HTML file as a string and then you pass it to the webview. It's not really bad, but I believe that it's a bit better to use other approach:</p> <pre><code>NSBundle* mainBundle = [NSBundle mainBundle]; NSString* path = [mainBundle pathForResource: @"index" ofType: @"html"]; NSURL* url = [NSURL fileURLWithPath: path]; NSURLRequest* req = [NSURLRequest requestWithURL: url]; [webview loadRequest: req]; </code></pre>
    singulars
    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