QuickStart for iOS

Get sample projects up and running quickly! The sample project included with the SDK is pre-configured and ready to be compiled and run with little configuration required. Please contact us first to obtain credentials for your application.

Min Requirements

• iOS 11+
• XCode 9 or higher
• Swift 4 or higher
• iPhone 5, iPad (4th generation), or iPad mini (2nd generation)
• Registered Apple developer account

Get started with the example app

1. Clone the example app with the SDK

Download digi.me SDK with a few example apps to try. The digi.me SDK code repository is stored under GitHub where you can find always the most recent version of SDK with the latest bug fixes and an up to date compatible example app. Clone the repository to your machine to get the SDK and the example apps. Run the following command in the terminal;

git clone https://github.com/digime/digime-sdk-ios.git

2. Configure the example app

A demo contract ID and p12 file have already been embedded in the example app for ease of use. The contract selects both Social and Finance data from a digi.me library for a given time period (please contact us if you would like to use a different contract). Set your application ID and p12 password in /Example/ViewController.m as shown from the placeholders below:


// - INSERT your App ID here -
self.dmeClient.appId = @
; // - REPLACE 'YOUR_P12_PASSWORD' with password provided by Digi.me Ltd self.dmeClient.privateKeyHex = [DMECryptoUtilities privateKeyHexFromP12File:@"CA_RSA_PRIVATE_KEY" password:@

Add the application ID in Info.plist and replace the digime-ca-YOUR_APP_ID value found under CFBundleURLTypes->Private Sharing key.

		<string>Consent Access</string>
</string> </array> </dict> </array>

3. Build and run

Run the example app then create a digi.me library to use with PS.

4. Make it your own

Explore the code! Use the sample app as a base or start a new project using the SDK. For more information about the SDK or how to integrate the SDK into an existing or new project, please check out our GitHub iOS SDK documentation.