Note that you need to set the license key before intializing scanning. Ideally in AppDelegate or viewDidLoad before initializing any recognizers. License key as string You can pass the license key as a string, the following way: Swift MBCMicroblinkSDK.shared().setLicenseKey("LICENSE-KEY", ...