-
Notifications
You must be signed in to change notification settings - Fork 10
Phonegap, iOS and XCode4
dcousineau edited this page May 17, 2011
·
2 revisions
Quicks steps I used to at least get started with Phonegap, iOS, and XCode4.
- Download and extract Phonegap at http://www.phonegap.com/
- Install the iOS Phonegap SDK (path/to/phonegap/iOS/PhoneGapLibInstaller.pkg)
- Generate a blank XCode4 template at https://build.phonegap.com/generate
- Download and extract generated template
- Drop SpazHD in the
www
folder (I suggest renaming the existing index.html) - Update SpazHD's index.html to add phonegap:
<!doctype html>
<html>
<head>
<title>Spaz</title>
<!-- ADD BELOW -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<script src="phonegap.0.9.5.min.js"></script>
<!-- END ADD -->
<script src="enyo/framework/enyo.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
sc.setDumpLevel(0);
new Spaz().renderInto(document.body);
</script>
</body>
</html>
- Update Target Device Family in project build settings to be iPhone/iPad (see screenshot)
- Run project, target the iPad
At this point in time I just got it up and running, button taps (like adding an account) don't work, but the X and sidebar works. This just gets it up off the ground and into the emulator.