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 Empty Application as the project template, and then click Next.
  3. Specify these values and click Next.
    1. Enter SMP101 as the product name.
    2. Enter My Corporation (or another value as needed) as the organization name.
    3. Enter MyCorp (or another value as needed) as the company identifier.
    4. Select SMP101 for the class prefix.
    5. Select Universal as the device family product.
    6. Unselect Use Core Data.
    7. Unselect Use Automatic Reference Counting.
    8. Unselect Include Unit Tests.
  4. Select a location in which to save the project and click Create to open it.

    Xcode creates a folder, SMP101, to contain the project file, SMP101.xcodeproj, and another SMP101 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. Delete the SMP101 folder inside the top level of the SMP101 project:
      1. In Xcode, select the SMP101 folder.
      2. Click Remove References.
      3. In the Finder, manually delete the SMP101 folder from the project folder.
      4. Verify that only the SMP101.xcodeproj file and the build folder are in the SMP101 folder.
  6. Verify that the SDK and deployment targets are correct:
    1. Select SMP101 in Project Navigator and then select Build Settings.
    2. Under Project, select SMP101.
    3. Verify that Base SDK under Architectures is set to Latest iOS (iOS 6.0).
    4. Scroll to the Deployment section and set the iOS Deployment Target to iOS 4.3 .
    5. Select Targets > SMP101 and verify that those values are also set.
  7. Copy the files from the SMP101 folder on your Windows machine to the SMP101 folder on your Mac that Xcode created to contain the SMP101 project:
    1. Connect to the Microsoft Windows machine where SAP Mobile 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 SMP_HOME\MobileSDK23\ObjectAPI\iOS folder from the SAP Mobile Platform installation directory to the SMP101 folder on your Mac.
    5. On your Windows machine, navigate to the SMP101 mobile application project and copy the Generated Code folder to the SMP101 directory on your Mac.
Next
Add libraries, resources, and source code to the SMP101 Xcode project.