How to integrate the SDK


  1. Drag and drop GSSDKCore.xcframework and optionally GSSDKScanFlow.xcframework and GSSDKOCR.xcframework into your project.
  2. Add them to the ‘Embedded binaries’ section of the General tab

With CocoaPods

If you already use CocoaPods, you can use the Genius Scan SDK as a Pod. Just add the following line to your existing Podfile (Make sure you specify the correct SDK location)

pod 'GSSDK', :podspec => ''

The SDK is modular, so you can also include only the desired subspec: Core, OCR or ScanFlow.

Configuring your project

Since the project uses some C++ code, you also need to link with the standard C++ library. In the project’s Build Phases, add libstdc++ in Link Binary With Libraries.

Include the Genius Scan SDK header wherever you want to use it:

#import <GSSDK/GSSDKCore.h>

Build your project.

You will find all the API documentation in the headers of the SDK.

Configuring a license key

The SDK can run without a license key but will stop working after 60 seconds.

You will need to initialize the SDK with your license key using the following command:

NSError *error = nil;
if (![GSK initWithLicenseKey:@"<YOUR LICENSE KEY>" error:&error]) {
    NSLog(@"Error while initializing the Genius Scan SDK: %@", error);

This method will return a boolean indicating whether the license key has been accepted and is still valid. If the license key has expired, a good practice is to show a message to your users, asking them to update the app.

Note about the sample apps: if you have a license key, you can use it for the sample apps, but make sure you change the bundle ID of the sample app to match the bundle ID associated with your license key.