Phonegap IOS Project


  1. Follow the steps in
    When install Xcode, using “Apple Developer Downloads” link
  2. Add ExternalHosts in Resources/Cordova.plist if using external links: *;
    if use weinre, add one more: localhost
  3. Use weinre  to debug (testing on chrome)
    install Homebrew  in Terminal ruby <(curl -fsSkL refer to
    install node Nd npm from
    in Terminal:  sudo npm -g install weinre
    run weinre in Terminal: weinre,  it will start server localhost:8080
    add localhost in Cordova.plist
  4. Add Phonegap-SQLitePlugin
    Follow the steps in
  5. Copy project web source to folder www/
    if need weinre debug, uncommon out the line in index.html  <script src=”http://localhost:8080/target/target-script-min.js#mytest4″></script&gt;
  6. delete app in similar; in Xcode: cmd+shift+K – clear cache, cmd+shift+r build , click Run , cmd+shift+c display console
  7. Turn off debug (web only): util.js, change Tool.debug from true to false

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: