Need help?

Please type a word or phrase into the box below to search all our FAQ and support articles.

iOS: Terminating app due to uncaught exception 'MBInvalidLicenseResourceException'

Follow

The 'MbinvalidLicenseResourceException' exception is triggered when the user has not entered the correct license key in the project where Microblink SDKs are being used.

There are several ways to fix this exception:

1) If you are using the license key with the string method:

MBMicroblinkSDK.shared().setLicenseKey("your-license-key")

Make sure that you have copied and entered the correct license key from the Dashboard and that matches your Bundle ID that is connected with the key.

The method for activating the license key should be implemented in the viewDidLoad function.

2) If you are using the licenske key in form the .mblic file:

MBMicroblinkSDK.sharedInstance().setLicenseResource("licensee", withExtension: "txt", inSubdirectory: "License", for: Bundle.main);

3) License key files come in .mblic extension, so please make sure that you properly set extension or file type (you can use .mblic or .txt).

4) Please make sure that you include .mblic file into Targets - Build phase - Copy bundle resources

Screen_Shot_2018-09-19_at_10.10.43.png 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments