Deploying the Device Application

Deploy the SUP101 application to the iPhone simulator for testing.

Prerequisites
Register an application connection in Sybase Control Center.

You must be connected to the server where the mobile application project is deployed.

Task
  1. In the upper-left corner of XCode, make sure that the Scheme is set to SUP101 | iPhone 4.3 Simulator.

    SUP iOS Tutorial - Scheme display
  2. Select Product > Build and then Product > Run
    The project is built and the iPhone simulator starts.
  3. In the iPhone simulator, go to Settings > SUP101 to enter the connection settings.
    • ServerNameSetting – the machine that hosts the server where the SUP101 mobile application project is deployed.
    • ServerPortSetting – Unwired Server port number. The default is 5001.
    • CompanyIDSetting – the company ID you entered when you registered the device in Sybase Control Center, in this case, 0.
    • UserNameSetting – the user you registered in Sybase Control Center, user1.
    • ActivationCodeSetting – the activation code for the user, 123.

    SUP iOS Tutorial - Settings
  4. In the iPhone applications screen, open the SUP101 application.
  5. Click Subscribe.
    The customer list appears.
  6. Select a customer record from the customer list and double-click to open the detail view.
    The customer detail shows the fields: First Name, Last Name, and Phone.
  7. Change the First Name to something else, and click Submit.