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.
Cool Joe, thanks... the manual's missing manual :-)
Trying to figure out steps 20 & 21 - was this a 0.93/HEAD conflict or something?
Also 22... I didn't add the contacts in my demo; they were there already. So wondering how I got a magic simulator-with-friends.
Once the dust has settled, I should push the article source code onto GitHub too.