Testing an Application Using a Emulator

Run and test the application on an emulator and verify that the application automatically registers to Unwired Server using the default application connection template.

  1. In Xcode, select Product > Build and then Product > Run.
    The project is built and the iPhone Simulator starts.
  2. In the iPhone simulator, go to Settings > <Application> to enter the connection settings.
    • ServerNameSetting – the machine that hosts the server where the mobile application project is deployed.
    • ServerPortSetting – Unwired Server port number. The default is 5001.
    • CompanyIDSetting – if connecting directly to Unwired Server company ID is not required. If connecting through a Relay Server, set the company ID to the Relay Server farm ID.
    • UserNameSetting – the user defined in the security configuration you selected at deployment time.
    • ActivationCodeSetting – the activation code for the user. This setting is not required for automatic registration; an activation code is only required if you are performing manual registration.
  3. In the iPhone applications screen, open the application.
  4. In Sybase Control Center verify that the application connection was created in Applications > Application Connections.
    When the application has successfully registered, the application connection displays a value of zero in the Pending Items column.
  5. Test the functionality of the application. Use debug tools as necessary, setting breakpoints at appropriate places in the application.