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 'MBInvalidLicenseKeyException'

Follow

If you get an exception like this, please take a closer look to your log in the XCode console.

Output will be like following in case you enter wrong bundle id: 

[D] func [line:32] 2018-07-24 11:49:30.686479+0200 BlinkID-sample-Swift[2735:1940264] Unlocking BlinkID library version 4.0.0

[E] func [line:294] 2018-07-24 11:49:30.687973+0200 BlinkID-sample-Swift[2735:1940264] This license is invalid for licensee 'licensee1'. It is valid only for licensee 'licensee2', for product 'BlinkID' on platform 'iOS' up to version 4.2. Please contact support for more information.

2018-07-24 11:49:30.692197+0200 BlinkID-sample-Swift[2735:1940264] *** Terminating app due to uncaught exception 'MBInvalidLicenseKeyException', reason: 'Your license key is invalid! This license is invalid for licensee 'licensee1'. It is valid only for licensee 'licensee2', for product 'BlinkID' on platform 'iOS' up to version 4.2. Please contact support for more information.'

*** First throw call stack:

(0x1853dad8c 0x1845945ec 0x1053339fc 0x104cb50b0 0x18eff5e64 0x18eff5a50 0x18efe6ce4 0x18efe5b18 0x18f07362c 0x18efe9274 0x18efb65e0 0x18f5e6b1c 0x18efb5dd0 0x18efb5c6c 0x18efb4afc 0x18fc4a84c 0x18efb41ec 0x18fa2fac8 0x18fb7dbf8 0x18efb3c0c 0x18efb35a8 0x18efb05e0 0x18efb0330 0x187bdc470 0x187be4d6c 0x10655119c 0x10655d7cc 0x187c10878 0x187c1051c 0x187c10ab8 0x185383404 0x185382c2c 0x18538079c 0x1852a0da8 0x187286020 0x18f2c0758 0x104cbb2c4 0x184d31fc0)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb)

To check if you are using correct bundle ID in your project, select Targets and under Bundle identifier there should be bundle ID used during the generation of the license key. 

 

Another possibility is that you are using recognizers that are not enabled in your license key. In that case log output will be as following: 

[D] func [line:33]2018-07-24 11:49:30.686479+0200BlinkID-sample-Swift[5132:1263652] Unlocking BlinkID library version 4.0.0
2018-10-192018-07-24 11:49:30.686479+0200 BlinkID-sample-Swift[5132:1263652] *** Terminating app due to uncaught exception 'MBInvalidLicenseKeyException', reason: 'Your license key is invalid! Please check if you have all wanted rights.'
*** First throw call stack:
(0x1afd3fef8 0x1aef0da40 0x1048424e0 0x1041fe0d4 0x1041fdc88 0x1041fe394 0x1dccc22dc 0x1dc753844 0x1dc753b64 0x1dc752b64 0x1dccfbc14 0x1dccfce78 0x1dccdc3c0 0x1dcda723c 0x1dcda9ca8 0x1dcda283c 0x1afcce5b8 0x1afcce538 0x1afccde1c 0x1afcc8ce8 0x1afcc85b8 0x1b1f3c584 0x1dccc0bc8 0x104201160 0x1af788b94)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

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

Comments