Quantcast
Channel: Jive Syndication Feed
Viewing all articles
Browse latest Browse all 10881

SAPUI5 Mobile App for cross platforms(iOS/Android) using PhoneGap: PART3

$
0
0

In my earlier blogs, I have discussed about how to setup the Android development platform and run SAPUI5 Mobile App in Eclipse. This blog will cover the steps to run the SAPUI5 in Xcode for iOS devices using PhoneGap.


Prerequisite:You have installed Xcode in your IOS.


Download the latest PhoneGap folder from the PhoneGap website and unzip them in your desktop.


1.jpg


I'm Packaging the PhoneGap in Xcode using "Command Line Interface".


Create an empty folder in the desktop. I created folder with name “JUN11” [ Just to remember the folder name easily..:) ].


Launch the “Terminal” app.


2.jpg


Open the downloaded PhoneGap folder and drag the “bin folder” from the path Phonegap-2.9.1->lib->ios->bin into the terminal app.


3.jpg


You should see the bin path in the terminal after performing the above step.


Once the Terminal app is opened, create a new project in Xcode with Cordova libraries using the below command line as shown and enter the password of your desktop if required.

 

   “sudo ./create ~/Desktop/Jun11 org.apachecordova.Jun11 Jun11”


4.jpg

You should see all the Cordova libraries, folders created as a result of above step under the folder.

 

5.jpg

     Copy all your SAPUI5 developments from your eclipse and paste under the WWW folder.

 

6.jpg

As I have used index.html in my project, it has overwritten the default file which gets created during folder creation. I just copied the folders   from the Eclipse project explained in blog 2.

 

7.jpg

 

     Copy the Cordova.Js file downloaded from Phonegap into the WWW folder as shown below.

 

8.jpg

 

     Once you open the Jun11.xcodeproj, you can see the project with the below structure in Xcode.

 

9.jpg

If you have created the SAPUI5 application with different start up HTML file, you can overwrite it in the AppDelegate.m file by uncommenting the line self.viewController.startpage = @”index.html”;

 

10.jpg

Make sure the index.html file has the access to these Cordova.JS files.

 

11.jpg

 

Choose the Simulator to test your UI5 app.

 

I was successfully able to generate the app, export the .IPA file from the Xcode. Here is my UI5 running in the Simulator mode.

 

13.jpg

 

Thanks,

S.Rajkumar.


Viewing all articles
Browse latest Browse all 10881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>