Adding Source Code Files, Libraries, and Resources to the Xcode Project

Once you set up the initial project in Xcode, you need to add files from the Sybase Unwired Platform folders you copied from your Windows machine.

  1. In the Xcode Project Navigator, Control-click the SUP101 folder, then select Add Files to "SUP101".
    Select the Generated Code folder, unselect Copy items into destination group's folder (if needed), and click Add.
    The Generated Code folder is added to the project in the Project Navigator.
  2. Control-click the SUP101 folder, then select Add Files to "SUP101".
    1. In the ObjectiveC folder you copied from the Sybase Unwired Platform installation, navigate to the libs/Debug-iphonesimulator directory.
    2. Select the libclientrt.a, libSUPObj.a, and libMO.a libraries.
    3. Be sure Copy items into destination group's folder (if needed) is unselected.
    4. Click Add.
    The libraries are added to the project in the Project Navigator.
    Note: The library version corresponds to the configuration you are building. In this tutorial, you work with the libraries for the Debug version of the iPhone simulator.
  3. Control-click the SUP101 folder, then select New Group, then rename it to Resources.
  4. Control-click the Resources folder, then select Add Files to "SUP101" to add the Settings.bundle resource to the project.
    This bundle adds resources that lets iOS device client users input information such as server name, server port, user name and activation code in the Settings application.
    1. In the ObjectiveC folder, navigate to the includes directory, then select the Settings.bundle file.
    2. Unselect Copy items into destination group's folder (if needed).
    3. Click Add
    The bundle Settings.bundle is added to the project in the Project Navigator.
  5. Add the source code files from the SUP_iOS_Custom_Dev_Tutorial_code.zip archive.
    1. Control-click the SUP101 folder, then select Add Files to "SUP101".
    2. Select all files, then click Add.
    The project now looks like this:
    SUP iOS - Copied Files
Next
Configure the build settings.