kishikawakatsumi / UICKeyChainStore

UICKeyChainStore is a simple wrapper for Keychain on iOS, watchOS, tvOS and macOS. Makes using Keychain APIs as easy as NSUserDefaults.
http://kishikawakatsumi.com
MIT License
3.09k stars 382 forks source link

iOS10 issues #134

Closed sksyed closed 8 years ago

sksyed commented 8 years ago

Are there any reported issues with new release of XCode8, iOS10 and UICKeyChainStore?

My code runs normally with XCode7.3.1 but on XCode8Beta it started breaking. UICKeychainStore doesn't seem to return anything.

I used UICKeyChainStore 1.0.5 and then 2.1.0 but it didn't help.

ManuelOrtega commented 8 years ago

+1

Also experiencing the same issue. Not able to retrieve anything set in UICKeychainStore in iOS 10.

Any solution?

ManuelOrtega commented 8 years ago

Found the solution!

You have to enable the Keychain sharing in the capabilities section:

http://stackoverflow.com/questions/38456471/secitemadd-always-returns-error-34018-in-xcode-8-beta-gm-in-ios-10-simulator/38543243#38543243

hiroshihorie commented 8 years ago

Yes I have the same problem

squatchus commented 8 years ago

Do you guys experiencing this issue on iOS 10 in general or on some specific devices? I have the same problem only on iPad Pro simulator. My iPad Mini 2 and iPhone 5s updated to iOS 10.0.1 works just fine.

kishikawakatsumi commented 8 years ago

@squatchus @HiroshiHorie @ManuelOrtega @sksyed

Please add code signing entitlements to the app. From iOS 10, entitlements file is always needed for writing Keychain even without sharing.

screen shot 2016-09-14 at 22 48 41 screen shot 2016-09-14 at 22 53 24