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 Window-based Application as the project template, and then click Next.
  3. Enter SUP101 as the Product Name, MyCorp as the Company Identifier, select Universal as the Device Family product.
    Unselect Include Unit Tests, and then click Next.
  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. Delete SUP101AppDelegate.h and SUP101AppDelegate.m.
    2. Under Supporting Files, delete the main.m file.
  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 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. In the Unwired Platform installation on your Windows machine, navigate to the \UnwiredPlatform\ClientAPI\MBS\ObjectiveC directory in the Unwired Platform installation directory, and copy the ObjectiveC folder to the SUP101/SUP101 directory 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.
    6. To prepare for adding the source code files to the Xcode project, unzip the SUP_iOS_Custom_Dev_Tutorial_code.zip archive.
Next
Add libraries, resources, and source code to the SUP101 Xcode project.