Set up an iOS client application in the Xcode IDE.
Prerequisites
Generate Objective-C code in to an output location.
Ensure the directory where Sybase Unwired Platform is installed is a shared directory so you can access it from your Mac.
Obtain the header and Objective-C source code files you need to build the user
interface from the SUP_iOS_Custom_Dev_Tutorial_code.zip file. This way, you can
easily copy and paste the code into the corresponding files that are created in
Xcode.
If you are viewing this guide online from the Sybase
Product Documentation Web site, click SUP_iOS_Custom_Dev_Tutorial_code.zip to
access the source code
files.
Copy the SUP_iOS_Custom_Dev_Tutorial_code.zip
archive file to your Mac machine and extract it into a folder. It
contains the Xcode project and a SUP101 project archive file to use in
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.
Unselect Include Unit Tests.
Unselect Use Automatic Reference Counting.
Select a location 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.
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 Move to Trash instead of
Remove References.
Verify the SUP101 folder in the project
folder is deleted in the Finder.
Verify the SUP101.xcodeproj is the only
file in the SUP101 folder.
Copy the files from the SUP101 folder on your Windows machine in 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 \UnwiredPlatform\MobileSDK213\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.