A simple app to test out Cordova/Phonegap basics.
You should have the following minimally setup:
$ git clone git@github.com:bergren2/colors.git
$ cd colors
$ npm install -g cordova
$ cordova serve
Then visit localhost:8000.
$ cordova emulate ios
$ cordova run ios
If it's your first time trying to run the emulator or on the iPhone, you may need to install additional components. You will be prompted when this happens.
Check out the Apple Documentation, specifically "Ad Hoc Testing".
First, make sure the intended test device is properly registered on the Apple Developer Member Center, and then that it is properly displaying in Xcode under "Windows > Devices".
After running cordova build ios --device
, open
platforms/ios/Colors.xcodeproj
in Xcode. Then do the following:
- "Product > Archive" to create an archive.
- Open "Window > Organizer" and then choose the "Archives" tab.
- Select "Export" and then "Save for Ad Hoc Development".
- Double-click the
.ipa
file you just created. This should open iTunes. - In iTunes, open your tethered device and go to Apps, where you should see your app. Click "Install" and apply the changes.
See LICENSE for details.