Set up an iOS client application in the Xcode IDE.
Prerequisites
Generate Objective-C code in to an output location.
Verify that SAP Mobile Platform is installed in a
shared directory so you can access it from your Mac.
To help create your project, and to later build the interface, download and
import the SMP 101 iOS Object API (2.3) example project from the SAP Community
Network (SCN) at http://scn.sap.com/docs/DOC-8803.
Copy the SMP101 iOS Object API example project to your Mac
machine and extract it into a folder. The example project contains the Xcode
project and a SMP101 project archive file to use in SAP Mobile WorkSpace.
Task
On your Mac, start Xcode and select Create a new Xcode project.
Select iOS Application
and Empty Application as the project
template, and then click Next.
Specify
these values and click Next.
Enter SMP101 as the
product name.
Enter My Corporation (or another value as needed) as
the organization name.
Enter MyCorp (or
another value as needed) as the company identifier.
Select SMP101 for
the class prefix.
Select Universal as the device family product.
Unselect Use Core
Data.
Select a location in which to save the project and click Create to open it.
Xcode creates a folder, SMP101, to contain
the project file, SMP101.xcodeproj,
and another SMP101 folder, which
contains a number of automatically generated files and a build folder.
Delete some of the automatically generated files created by default for the Xcode project.
Delete the SMP101 folder inside the top level of the SMP101
project:
In Xcode, select the
SMP101 folder.
Click Remove References.
In the Finder, manually delete the SMP101 folder from the project
folder.
Verify that only the SMP101.xcodeproj file and the build folder are
in the SMP101 folder.
Verify that the SDK and deployment targets are correct:
Select SMP101 in Project Navigator and then select
Build Settings.
Under Project, select SMP101.
Verify that
Base SDK under Architectures is set to Latest iOS (iOS 7.0).
Scroll to the Deployment section and set the iOS Deployment Target to
iOS 4.3 .
Select Targets > SMP101 and verify that those
values are also set.
Copy the files from the SMP101 folder on
your Windows machine to the SMP101 folder
on your Mac that Xcode created to contain the SMP101 project:
Connect to the Microsoft Windows machine where SAP Mobile Platform
is installed
From the Apple Finder menu, select Go > Connect to Server.
Enter the name or IP address of the machine, for
example, smb://<machine DNS
name> or smb://<IP
Address>, then click Connect.
You see the shared directory.
Copy the SMP_HOME\MobileSDK23\ObjectAPI\iOS folder from the SAP Mobile Platform installation
directory to the SMP101 folder on
your
Mac.
On your Windows machine, navigate to the SMP101 mobile
application project and copy the Generated
Code folder to the SMP101 directory on your Mac.
Next
Add libraries, resources, and source code to the SMP101 Xcode
project.