Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

Moodle Mobile Building the app for iOS: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 10: Line 10:
#* ''cd  ~/Apps/moodlemobile_android_cordova''
#* ''cd  ~/Apps/moodlemobile_android_cordova''
#* ''sudo /usr/local/lib/node_modules/cordova/bin/cordova platform add ios''
#* ''sudo /usr/local/lib/node_modules/cordova/bin/cordova platform add ios''
#* ''sudo /usr/local/lib/node_modules/cordova/bin/cordova build'' - not necessary, just check the build works.
# In Finder change the permission on ~/Apps/moodlemobile_android_cordova folder: Read + Write to everyone
# In Finder open ''/Users/jerome/Apps/moodlemobile_android_cordova/platforms/ios/MoodleMobileBeta.xcodeproj''. Test you can build the default Cordova app on your phone.

Revision as of 08:42, 26 March 2013

this is a quick guide to build the official Moodle Mobile app on iOS. It should be pretty easy to do it for your own organization.

  1. Install xcode
  2. Install NodeJs
  3. Install cordova-cli
    • sudo npm install -g cordova - it will install cordova. Note that on my machine I have some warnings about the ios bootstrap process being skipped but all the following steps seem to work ok anyway...
  4. Create a Xcode project
    • /usr/local/lib/node_modules/cordova/bin/cordova create ~/Apps/moodlemobile_android_cordova com.moodle.moodlemobile MoodleMobileBeta
    • cd ~/Apps/moodlemobile_android_cordova
    • sudo /usr/local/lib/node_modules/cordova/bin/cordova platform add ios
    • sudo /usr/local/lib/node_modules/cordova/bin/cordova build - not necessary, just check the build works.
  5. In Finder change the permission on ~/Apps/moodlemobile_android_cordova folder: Read + Write to everyone
  6. In Finder open /Users/jerome/Apps/moodlemobile_android_cordova/platforms/ios/MoodleMobileBeta.xcodeproj. Test you can build the default Cordova app on your phone.