Set up an iOS client application in the Xcode IDE.
Prerequisites
Generate Objective-C code in to an output location.
Verify that Sybase Unwired 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 SUP101 iOS Object API (2.2 SP05) example project from the SAP
Community Network (SCN) at http://scn.sap.com/docs/DOC-8803.
Copy the SUP101 iOS Object API example project to your Mac machine and extract
it into a folder. The example project contains the Xcode project and a SUP101
project archive file to use in Sybase Unwired WorkSpace.
Task
On your Mac, start Xcode and select Create a new Xcode project.
Select iOS Application and
Single View Application as the project template, and
then click Next.
Specify
these values and click Next.
Enter SUP101 as the
product name.
Enter MyCorp (or
another value as needed) as the company identifier.
Select SUP101 for
the class prefix.
Select Universal as the device family product.
If you do not see the following selections (Use
Storyboards and Use Automatic Reference
Counting) during project creation, turn off the ARC in
the SUP101 target build settings, by manually setting Objective-C
Automatic Reference Counting to No.
Unselect Use Storyboards.
Unselect Use Automatic
Reference Counting.
Unselect Include Unit
Tests.
Select a location in which to save the project and click Create to open it.
Xcode creates a folder, SUP101, to contain the project file,
SUP101.xcodeproj, and another
SUP101 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.
In Xcode, delete the SUP101 folder under the SUP101 project:
Click Remove
References.
In the Finder, manually delete the SUP101 folder from the project
folder.
Verify that only the SUP101.xcodeproj file and the build folder are
in the SUP101 folder.
Verify that the SDK and deployment targets are correct:
Select SUP101 in Project Navigator and then select Build
Settings.
Under Project, select SUP101.
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 or higher.
Select Targets > SUP101 and verify that those values are also
set.
Copy the files from the SUP101 folder on your Windows
machine to the SUP101 folder on your Mac that Xcode created
to contain the SUP101 project:
Connect to the Microsoft Windows machine where Sybase Unwired 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 SUP_HOME\MobileSDK22\ObjectAPI\iOS folder from
the Unwired Platform
installation directory to the SUP101 folder on your
Mac.
On your Windows machine, navigate to the SUP101 mobile
application project and copy the Generated
Code folder to the SUP101 directory on your Mac.
Next
Add libraries, resources, and source code to the SUP101 Xcode project.