Note that there are some explanatory texts on larger screens.

plurals
  1. PODirectory structure for cross-platform phonegap project
    primarykey
    data
    text
    <p>What's a good directory structure for a single source repository that holds both Android and iOS versions of a phonegap project? I'm okay using sym-links since I don't expect any development to happen on PCs. (But if there's a clean way to do it without, I'm all ears, since git and symlinks on PCs are a nightmare.) I've tried this:</p> <pre><code>www/ index.html js/ *.js xpjs-ios/ *.js xpjs-android/ *.js css/ *.css html/ *.html (all other files) android/ (lots of java and config files) android/assets/www/index.html -&gt; www/index.html js -&gt; www/js xpjs -&gt; www/xpjs-android html -&gt; www/html css -&gt; www/css ios/ (xcode config and such) ios/www/index.html -&gt; www/index.html js -&gt; www/js xpjs -&gt; www/xpjs-ios html -&gt; www/html css -&gt; www/css </code></pre> <p>Then I point xcode at the ios/www directory, and eclipse at the android/www directory. For platform-specific javascript, the html files refer to <code>xpjs/phonegap.js</code> and <code>xpjs/my-quirks.js</code> and get either the android or ios versions of those files.</p> <p>This all seems like it should work, but xcode4 doesn't seem to deal with symlinks. If I open one of the source files in the xcode editor, it reads fine, but when I try to save it it says something like</p> <pre><code>The document "index.html" could not be saved. It does not exist. </code></pre> <p>and the app when I try to run it fails with </p> <pre><code>ERROR: Start page 'www/index.html' was not found. </code></pre> <p>Surely somebody's figured this out.</p>
    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.
 

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