Welcome to Part1 – End to end iOS native mobile app development using SAP Cloud Platform SDK for iOS. In this section, we will talk about the pre-requisites of mobile app development.
In a nutshell, following are the prerequisites.
- Creation of SAP Cloud Platform trial account (https://account.hanatrial.ondemand.com)
- Enable Development & Operations service on your trial account
- OS X El Capitan Version 10.11.5 or greater
- Xcode 8.2.1 (with swift version 3.0.2)
- Java JDK 1.7 or greater
- Ruby, Activesupport and xcodeproj installation through gem
We assume that, you have enough information about SAP Cloud Platform. If you would like to know more about HCP, please have a look at here: https://hcp.sap.com/index.html
Lets get started.
Chapter1: Creation SAP Cloud Platform of trial account (https://account.hanatrial.ondemand.com)
If you have any account (irrespective of trial or production), you can proceed to the chapter2. In case, if you don’t have an account yet, please follow the instructions to create an account on SAP Cloud Platform.
Launch the url in Chrome
Click on Register
Enter the details in the screen and click on Register
Your email id and password will be the credentials to logon to the trial
Chapter2: Enable Development & Operations service on your trial account
We need to enable the Development & Operations service on Cloud Platform to get started. We will use this service to provide mobile access to enterprise information. Key features of mobile services for “development and operations” includes app content lifecycle management, push notifications for timely enterprise data updates, support for on-device storage of enterprise data (offline apps), app security, and app monitoring and usage reporting. This includes native build apps as well as hybrid mobile apps.
Launch SAP Cloud Platform Trial
Logon to trial account with your SCN userid/password if you already have them or use the emailed/password you used while registering in the above step
|Click on the Link with your trial to launch it|
|Click on Services link from the left pane to see the list of services|
|Search for Development & Operation|
|Click on Enable to enable the service. Wait for the Enabled status to appear||If it is already enabled, don’t do anything.|
Chapter3: OS X El Capitan Version 10.11.5 or greater
Mac machine with OS of El Capitan Version 10.11.5 or greater. There is no restriction on hardware.
Chapter4: Xcode 8.2.1 (with swift version 3.0.2)
We always recommend to use latest version of Xcode.
|Open App Store on Mac machine|
|Search for Xcode|
You get the search results. Look for Xcode.
(Most of the time, it would be the very first application in the search results.)
Click on Xcode
Click on Get -> Install App buttons.
(Xcode is aroung 4+GB. Please be patient)
Make sure that, the SDK supports the swift version. Have a look at this table.
|Xcode version||Swift language version||Supported SDK version|
(As of 24-Mar-2017).
Chapter3: gem installation
we need activesupport, ruby, xcodeproj softwares to create the Xcode project successfully from HCPSDKAssistantfoiOS. These are part of gem. So, lets install these softwares from gem.
Just test whether you have the softwares installed already or not. If its installed, is it correct version or not.
|Software||Version||Command to run on Terminal to know version||Command to run on Terminal to install the software|
|Swift language||3.0.2 and above||$ xcrun swift -version||It comes with Xcode|
|activesupport||4.2.6 and above||$ gem list||$ sudo gem install activesupport -v 4.2.6|
|ruby||0.1.0 and above||$ gem list||$ sudo gem install ruby|
|xcodeproj||1.4.2 and above||$ gem list||$ sudo gem install xcodeproj|
In next blog, we will discuss about downloading the Cloud Platform SDK for iOS and setup/installation. Please make sure you have completed this part1 before move forward.