[AC-5224] TiTouchID module: -34018 error when trying to save key
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Not Our Bug |
Resolution Date | 2017-09-22T13:07:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Alberto Marcone |
Assignee | Shak Hossain |
Created | 2017-09-22T07:16:04.000+0000 |
Updated | 2017-09-22T13:07:15.000+0000 |
Description
Creating an empty project and running the example provided:
var keychainItem = TouchID.createKeychainItem({
...
});
keychainItem.addEventListener('save', function(e) {
Ti.API.info(e);
});
I get the error:
[INFO] : {
[INFO] : bubbles = 1;
[INFO] : cancelBubble = 0;
[INFO] : code = "-34018";
[INFO] : error = "-34018 (Code: -34018)";
[INFO] : source = "[object TiTouchidKeychainItem]";
[INFO] : success = 0;
[INFO] : type = save;
[INFO] : }
Attachments
The error suggests that you are missing entitlements, see [here](https://www.osstatus.com/search/results?platform=all&framework=all&search=34018) for more infos. Your entitlements need to have the
keychain-access-groups
entitlement included, although it usually should be injected by the module already. Example of the tiapp.xml:Please let us know which Ti.TouchID version you use and if possible, attach a quick sample project to reproduce. Did this not happen or prior SDK- and/or Xcode/iOS versions? This would help tremendously! *EDIT*: [This example project](https://www.dropbox.com/s/ibfjh8s1bg7m2li/touchidtest.zip?dl=0) works for me, please check it out. See more here: - https://forums.developer.apple.com/thread/4743?tstart=0 - https://stackoverflow.com/questions/38456471/secitemadd-always-returns-error-34018-in-xcode-8-in-ios-10-simulator - https://stackoverflow.com/questions/22082996/testing-the-keychain-osstatus-error-34018
Thank you for your help. I decided to run it and read the complete error, and there it was:
I thought I had edited the identifier in the code, but apparently I didn't. Thank you very much anyways.