This content has been archived.

Table of Contents

Creating a Hello World iOS app with the Connect SDK

This tutorial demonstrates how to configure and integrate the Connect SDK with a new iOS app created in the Xcode development environment. The purpose of the app is to enable users to successfully log in to the Pega 7 Platform application instance. This tutorial demonstrates how to build a Hello World iOS app with the Connect SDK by using the Swift language. To learn more about the Connect SDK, see the Connect SDK overview.

This walkthrough takes approximately 35-45 minutes to complete.


Before you start, download the file, which contains sample Swift code and other Xcode files for the iOS app described in this tutorial.

You can connect to any Pega® Platform instance to test the iOS app.

The users of the Pega Platform mobile app that you are creating must have the PegaRULES:PegaAPI role assigned to them. If required, to enable the use of HTTP server URLs, in the Context tab of the API Service Package rule, clear the Require TLS/SSL for REST services in the package check box.

Build and run the app

After you create all the necessary Swift code in your Xcode project that makes calls to the Connect SDK library, you can build and run the iOS app in a simulator to test that it works correctly.

  1. From the Product menu of Xcode, click Run. The project is built, and after a few moments the iOS app displays its login screen in the simulator.
    HelloWorld first (log in) screen
    HelloWorld first screen
  2. Enter a valid user name and a password for the app. The content that displays depends on the portal that is associated with the access group of the operator.

Related Content

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.