Skip to content

Latest commit

 

History

History
70 lines (36 loc) · 3.07 KB

File metadata and controls

70 lines (36 loc) · 3.07 KB

How to Run the Code

Introduction

This guide shows you how to select a scheme, simulator and run the application from Xcode.

Set up

In order to build and run the app, ensure that the following repositories have been cloned into a suitable working directory:

You will also need a Firebase token to get around the app check restrictions, and configure your machine to use ReadID SPM locally. Instructions on how to do this can be found here

Selecting an iOS device

At the top of the toolbar in Xcode, select a scheme to run your app in (options are "OneLoginRelease" for a Release configuration, "OneLoginIntegration" for a Integration configuration, "OneLoginStaging" for a Staging configuration and "OneLoginBuild" for a Build configuration), click the device (it might default to My Mac) and select an iOS device (iPhone 15, iPhone SE etc)

_Note:_Minimum iOS support: iOS 15

Screenshot of selecting an scheme in Xcode

Screenshot of selecting an iOS device simulator in Xcode

Running the app

From the top toolbar in Xcode, click the play button found on the left hand side of the toolbar:

Screenshot of the run button in Xcode

Xcode will build the app, install it onto the iOS simulator and then run it:

Screenshot of Xcode showing the Gradle Build progress bar

Once the task has finished, you should see the landing screen of the app in the iOS simulator:

Screenshot of Xcode showing the app running on the iPhone simulator

To stop the simulator from running the app, you can click the stop button found to the left of the play button:

Screenshot of Xcode's stop button

Running a full ID Check journey

Details on how to run a full ID Check journey within the app can be found here. Currently, it is not possible to run this journey in an environment lower than Staging. Therefore, the simulator cannot be used for this due to app attest restrictions.