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.
      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.
    5. Unselect Use Storyboards.
    6. Unselect Use Automatic Reference Counting.
    7. Unselect Include Unit Tests.
  4. 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.

  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:
      1. Click Remove References.
      2. In the Finder, manually delete the SUP101 folder from the project folder.
      3. Verify that only the SUP101.xcodeproj file and the build folder are in the SUP101 folder.
  6. Verify that the SDK and deployment targets are correct:
    1. Select SUP101 in Project Navigator and then select Build Settings.
    2. Under Project, select SUP101.
    3. Verify that Base SDK under Architectures is set to Latest iOS (iOS 7.0).
    4. Scroll to the Deployment section and set the iOS Deployment Target to iOS 4.3 or higher.
    5. Select Targets > SUP101 and verify that those values are also set.
  7. 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:
    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 SUP_HOME\MobileSDK22\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.