Skip to main content

Setting Up Xcode 10

This guide will teach you how to set up your Xcode 10 environment with the IBM Verify SDK for iOS.

Prerequisites

  • Download and install Xcode.

Steps

  1. Download the IBM Verify SDK for iOS from the App Exchange.

  2. Extract the contents of the zip.

  3. Launch Xcode, and on the welcome window, click Create a new Xcode project, or open an existing project.

  4. Copy the Framework folder from the contents of the SDK (see Step 2) to the location of your project from Step 3.

  5. Select your project from the Project navigator to open the project editor.

  6. Select a target from the drop-down menu at the top-left of the project editor, and then select the General tab.

  7. Scroll down to the Embedded Binaries grouping, and click the add (+) button.

  8. Click the Add Other... button, and select the IBMVerifyKit.framework file from the Frameworks folder (see Step 4).

  9. Click Open.
    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.
  10. 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.

  11. To use the framework, import it using the following code snippet at the top of your file (such as ViewController.swift):

import IBMVerifyKit

Next Steps

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.