This is a starting point for using web content in an iOS app, complete with rake tasks and pre-written handlers for common iOS tasks. See our announcement post.
If you're completely new to iOS development, follow this tutorial from Apple:
and then read
You'll then have the knowledge to understand the architecture and purpose of this project.
- Put your web content in Imbed/www
- Run through Xcode (always open the workspace, not the project) or the rake tasks below
(When you make changes to your web content, either test it in Chrome and then setup a
rake build_static task to remove all files and copy yours back into the project, or do a
Clean in Xcode before building again.)
bundle exec rake -T
- Edit your web content in the
bundle exec rake build_static
- Launch through Xcode or
bundle exec sim
Lots of automation here:
rake build # Build the application rake build_static # Builds content from /static and copies it into the iOS app rake clean # Clean the build rake deploy # Upload ipa to testflight rake next_version # Bumps the bundle version in preparation of the build rake notify_campfire # Notify campfire of the Testflight release rake re_ship # Re-compiles and ships current version of the app rake release_build # Build the release config of the app rake ship_it # Performs all the tasks for a deployment to Testflight rake sign # Signs the app with the provisioning profile rake sim # Runs the app in the iOS simulator TODO rake tag # Tag the build