Setting Up an iOS Client Application in Xcode

Set up an iOS client application in the Xcode IDE.

Prerequisites
Task
  1. On your Mac, start Xcode and select Create a new Xcode project.
  2. Select iOS Application and Single View Application as the project template, and then click Next.
  3. Specify these values and click Next.
    1. Enter SUP101 as the Product Name.
    2. Enter MyCorp (or another value as needed) as the Company Identifier.
    3. Select SUP101 for the Class Prefix.
    4. Select Universal as the Device Family product.
    5. Unselect Include Unit Tests.
    6. Unselect Use Automatic Reference Counting.
  4. 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.

  5. Delete some of the automatically generated files created by default for the Xcode project.
    1. 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.
  6. 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.
    1. Connect to the Microsoft Windows machine where Sybase Unwired Platform is installed
    2. From the Apple Finder menu, select Go > Connect to Server.
    3. 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.
    4. Copy the \UnwiredPlatform\MobileSDK213\ObjectAPI\iOS folder from the Unwired Platform installation directory to the SUP101 folder on your Mac.
    5. 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.