Posts Tagged APP

Phonegap IOS Project

 

  1. Follow the steps in http://docs.phonegap.com/en/edge/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS
    When install Xcode, using “Apple Developer Downloads” link
    http://developer.apple.com/downloads
  2. Add ExternalHosts in Resources/Cordova.plist if using external links: *.openstreetmap.org;
    if use weinre, add one more: localhost
  3. Use weinre  to debug (testing on chrome)
    install Homebrew  in Terminal ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) refer to http://blog.joelambert.co.uk/2012/05/17/installing-weinre-on-mac-os-x/
    install node Nd npm from nodejs.org
    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 https://github.com/chbrody/Cordova-SQLitePlugin
  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
Advertisements

Leave a Comment