Phonegap setup tutorial: https://github.com/OhJia/p5Mobile/wiki/Phonegap
For the p5 Mobile wiki, go here.
To try this example on an iOS device:
- Follow the tutorial for setting up Phonegap.
- In command line, open the project folder, and prepare iOS platform:
phonegap prepare ios
- In Finder, go to Platforms/ios, open p5Mobile.xcodeproj in Xcode 7
- Connect your iOS device via USB, and click the run button in Xcode