Note: You need to be on a Mac.
Note: This is purposely verbose. Yes, I know a lot of this can be simplified. Fork it and show me.
- Install git
- Open your terminal.
- mkdir ~/Documents/phonegap_sencha
- cd ~/Documents/phonegap_sencha
- git clone https://github.com/phonegap/phonegap-iphone.git && cd phonegap-iphone
- git reset --hard HEAD
- git pull origin master
- make && open .
- Double click the "PhoneGapLibInstaller.pkg" file and walk thru the installation steps. Go back to terminal when finished.
- cd ~/Documents
- mkdir sencha_sdk
- cd sencha_sdk
- wget http://downloads.sencha.com/touch/sencha-touch-1.0.1a.zip && unzip sencha-touch-1.0.1a.zip
- cd ~/Documents/phonegap_sencha && wget http://staging.sencha.com/assets/images/learn/phonegap/Contacts.zip && unzip Contacts.zip
- cd Contacts
- mkdir www/lib/touch
- cp -r ~/Documents/sencha_sdk/sencha-touch-1.0.1a/ ./www/lib/touch
- open /Developer/Applications/Xcode.app Contacts.xcodeproj
- At this point in Xcode, Build and Run. You will get an error in the build. Flip back to terminal and enter:
- mv ~/Documents/PhoneGapLib/javascripts/phonegap-0.9.3.min.js ~/Documents/PhoneGapLib/javascripts/phonegap.js
- Build and run again and compiler is happy.
- Contacts will be empty. You need to add a contact or two in the Address book.
20 & 21 yeah there's something weird with the build; it yui compresses the phonegap.js file then tries to copy it, but it is attempting to copy the phonegap.js instead of phonegap.min.js. Just a typo in the shell script.
22 My simulator didn't have any contacts in it so I just added a few and it works fine.