To open the project you must first open the project file located at: stytch-ios/Stytch/Stytch.xcodeproj
The repository has 2 top level directories within the project.
- DemoApps/: All example code to help you get started and to help us test the SDK.
- Stytch/: The source code for the Stytch iOS SDK.
(Note. The directory structure in the file system does not exactly mirror the directory structure in the Xcode project)
The sample apps are broken down into 2 categories, workbench apps and demo apps.
- The workbench apps are testing apps, intended for internal development purposes. Almost all user flows are implemented in these apps, for reference and testing, but do not necessarily represent best practices or realistic usage.
- The demo apps are intended for demonstrating realistic use cases of the Stytch SDK, using both the Headless and Pre-Built UI implementations. Feel free to copy these projects and edit them to suit your needs
For each app you would like to run you must first ensure you have added your public token to the code and have added the app’s bundle id to your project dashboard's SDK configuration, click "edit" for the "Authorized applications (Required)" section, add your bundle id under "Bundle & application IDs" and make sure to click "save".
-
StytchDemo
Bundle ID:com.stytch.StytchDemo
Configure the public token -
StytchUIDemo
Bundle ID:com.stytch.StytchUIDemo
Configure the public token
Configure the URL Scheme -
StytchB2BUIDemo
Bundle ID:com.stytch.StytchB2BUIDemo
Configure the public token
Configure the URL Scheme -
ConsumerWorkbench
Bundle ID:com.stytch.ConsumerWorkbench
Configure the public token -
B2BWorkbench
Bundle ID:com.stytch.B2BWorkbench
Configure the public token -
StytchBiometrics
Bundle ID:com.stytch.StytchBiometrics
Configure the public token
You can select which target/app and which simulator you would like to run from the following menu. Then to run the target/app you chose you can press ⌘R
.