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.
Before you start, download the HelloConnectSDKiOS.zip 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.
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.
- From the
HelloWorld first screen
menu of Xcode, click . The project is built, and after a few moments the iOS app displays its login screen in the simulator.
- 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.