Moddlemobile for IOS

Source: Internet
Author: User
<span id="Label3"></p><span id="Mac_OSX" class="mw-headline"><span id="Mac_OSX" class="mw-headline">Mac OSX</span></span><p><p>This was a quick guide to build the official Moodle Mobile app on iOS. It should is pretty easy-to-do it for your own Organization.</p></p> <ol> <li><li>Install Xcode</li></li> <li><li>Install NodeJs <ul> <li>http://nodejs.org/</li> </ul></li></li> <li><li>Install CORDOVA-CLI <ul> <li><em>sudo xcodebuild-license</em> -agree to Xcode license</li> <li><em>sudo npm install-g Cordova</em> -it'll Install Cordova. Note that on my machine I has some warnings about the iOS bootstrap process being skipped and all the following steps see M to work OK anyway ...</li> </ul></li></li> <li><li>Create a Xcode Project <ul> <li><em>/usr/local/lib/node_modules/cordova/bin/cordova Create ~/apps/moodlemobile_android_cordova Com.moodle.moodlemobile Moodlemobilebeta</em></li> <li><em>CD ~/apps/moodlemobile_android_cordova</em></li> <li><em>Sudo/usr/local/lib/node_modules/cordova/bin/cordova Platform Add iOS</em></li> <li><em>Sudo/usr/local/lib/node_modules/cordova/bin/cordova Build</em> -not necessary, Just check the build works.</li> </ul></li></li> <li><li>In Finder change the permission on ~/apps/moodlemobile_android_cordova Folder:read + Write to everyone</li></li> <li><li>Add the Cordova Plugins <ul> <li><em>git clone git://github.com/alunny/childbrowser.git./childbrowser</em> -we are now going to install Cordova Compatibl E plugin with the plugin install command LINE.</li> <li><em>Sudo/usr/local/lib/node_modules/cordova/bin/cordova Plugin Add childbrowser/</em></li> </ul></li></li> <li><li>In Finder open <em>/users/jerome/apps/moodlemobile_android_cordova/platforms/ios/moodlemobilebeta.xcodeproj</em>. Test can build the default Cordova app on your phone.</li></li> <li><li>Copy the Moodle mobile app into www folder <ul> <li><em>git clone git://github.com/moodlehq/moodlemobile.git./moodlemobile</em></li> <li><em>MV Platforms/ios/www/platforms/ios/www_old/</em></li> <li><em>mv./moodlemobile/platforms/ios/www/</em></li> <li><em>CP Platforms/ios/www_old/cordova.js platforms/ios/www/</em></li> <li><em>CP Platforms/ios/www_old/childbrowser.js platforms/ios/www/</em></li> <li><em>MV Platforms/ios/www_old/childbrowser platforms/ios/www/</em></li> </ul></li></li> <li><li>In Xcode, edit <em>Resources > Moodlemobilebeta-info.plist</em> <ul> <li>Bundle display name: <em>Moodle</em> -"Moodle mobile" would be displayed "moodl...obile"</li> <li>Bundle version: <em>1.2.0.3</em></li> </ul></li></li> <li><li>ADD Icons and Splash <ul> <li><em>CP Platforms/ios/www/img/icon/ios/icon-57.png Platforms/ios/moodlemobilebeta/resources/icons/icon.png</em></li> <li><em>CP Platforms/ios/www/img/icon/ios/icon-57-2x.png Platforms/ios/moodlemobilebeta/resources/icons/[email protected]</em></li> <li><em>CP Platforms/ios/www/img/icon/ios/icon-72.png Platforms/ios/moodlemobilebeta/resources/icons/icon-72.png</em></li> <li><em>CP Platforms/ios/www/img/icon/ios/icon-72-2x.png Platforms/ios/moodlemobilebeta/resources/icons/[email protected]</em></li> <li><em>CP platforms/ios/www/img/splash/ios/* Platforms/ios/moodlemobilebeta/resources/splash</em></li> </ul></li></li> <li><li>Go to Targets > Summary <ul> <li>Check pre-rendered icon</li> <li>Enable all orientation</li> <li>Deployment target:4.3</li> <li>version:1.203 build:1.2.0.3</li> <li>Check the icons and all Splash-screens is There.</li> </ul></li></li> <li><li>Clean the app <ul> <li><em>RM-RF Platforms/ios/www/img/splash</em></li> <li><em>RM-RF Platforms/ios/www/img/icon</em></li> </ul></li></li> <li><li>Build and publish</li></li> </ol><span id="Warnings" class="mw-headline"><span id="Warnings" class="mw-headline">Warnings</span></span> <ul> <ul> <li>If you previously installed a different platform so you'll get a error when adding the Cordova plugin. It ' s advised to install both platforms at the same time. Then add the Cordova plugin (s) and then copy the app content into www. Don ' t forget cordova.js and plugin Js/files. Then you can manually install PhoneGap plugins.</li> <li>The IOS version doesn ' t need webintent Android Plugin.</li> <li>You must add the Childbrowser Cordova plugin just after adding the Platform. In Cordova 2.5, If you add the plugin after installing the app content, it creates a folder named childbrowser.js, and the Plugin doesn ' t Work.</li> <li></li> </ul> </ul><p><p>Moddlemobile for IOS</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.