This guide will teach you how to set up your Xcode 10 environment with the IBM Verify SDK for iOS.
- Download and install Xcode.
Download the IBM Verify SDK for iOS from the App Exchange.
Extract the contents of the zip.
Launch Xcode, and on the welcome window, click Create a new Xcode project, or open an existing project.
Copy the Framework folder from the contents of the SDK (see Step 2) to the location of your project from Step 3.
Select your project from the Project navigator to open the project editor.
Select a target from the drop-down menu at the top-left of the project editor, and then select the General tab.
Scroll down to the Embedded Binaries grouping, and click the add (+) button.
Click the Add Other... button, and select the
IBMVerifyKit.frameworkfile from the Frameworks folder (see Step 4).
Choose options for adding these files:
- Copy items if needed: Copies the files and folders to the project folder.
- Create groups: Keeps the group structure the same as the file structure.
- Create folder references: Displays the folders in the Project navigator but doesn’t copy them to the project. A folder reference is a reference in the Project navigator to a folder in the file system.
Click Finish. You should now see the IBM Verify iOS Framework in the Project navigator, as well as under the Embedded Binaries and Linked Frameworks and Libraries groupings.
To use the framework, import it using the following code snippet at the top of your file (such as
You have now successfully added the
IBMVerifyKit framework to your Xcode project, which allows you to easily integrate functionality such as one-time passwords, device registration and enrolment, and multi-tenant services for push notifications.
Play around with samples which demonstrate some functionality of the framework in the Samples section, or have a look at some quick, easy-to-implement code snippets in the Snippets section.