obscure-com / ti_keychain

iOS keychain wrapper for Appcelerator Titanium
78 stars 30 forks source link

Getting -34018 error #14

Open sliang0904 opened 7 years ago

sliang0904 commented 7 years ago

@pegli

Recently, after upgrade to iOS 10. I am getting -34018 error when creating keychain item, which make keychainItemData can't be read in second time

Here is the response, "2016-11-21 11:28:49.348 AppTest8[9204:75572] error creating keychain item: -34018 [DEBUG] : 2016-11-21 11:28:49.349 AppTest8[9204:75572] keychainItemData: { [DEBUG] : acct = ""; [DEBUG] : desc = ""; [DEBUG] : gena = testing; [DEBUG] : icmt = ""; [DEBUG] : labl = ""; [DEBUG] : svce = "com.obscure.keychain"; [DEBUG] : "v_Data" = "hello world"; [DEBUG] : }"

But if I read keychainItem.valueData for second time, it became empty.

apjneeraj commented 7 years ago

@pegli

We are getting the same issue on iOS 10 when using the module. keychainItem.valueData does not retain the value, calling it second time shows empty value.

soumyakantikar commented 7 years ago

@sliang0904 @apjneeraj Were you able to find the cause and the solution for the issue? Also are you using the release version of pegli, or did you rebuild the module using XCode 8.

Can you also check this link: https://github.com/jrendel/SwiftKeychainWrapper/issues/59#issuecomment-258783776 http://www.appcelerator.com/blog/2016/09/ga-release-for-titanium-sdk-5-5-0-appcelerator-cli-5-5-0-appcelerator-studio-4-7-1/

It seems that we need to add an entitlement file. Do let me know your thoughts.