Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

not working on iOS 10 #149

Closed
chrigu1981 opened this issue Aug 24, 2016 · 8 comments
Closed

not working on iOS 10 #149

chrigu1981 opened this issue Aug 24, 2016 · 8 comments

Comments

@chrigu1981
Copy link

hello,

just tested with Xcode 8 beta 6. it seems that SAMKeychain is not working. saving a key without error but can't get back the key...
Same code works fine on Xcode 7 iOS 9
thank you

@Alexs1987
Copy link

You need to enable keychain sharing in the capabilities screen
http://stackoverflow.com/a/38543243/171911

@daviyang35
Copy link

I have the same issues.
the same code
work with xcode 8 GM (8A218a) and iPhone 5 iOS 9.3.5 device
work with xcode 8 GM (8A218a) and iPhone 5c iOS 10.0.1 (14A403) device
did't work with xcode 8 GM (8A218a) and iPhone 7 iOS 10 (14A345) simulator

@tommeier
Copy link

Enabling keychain sharing (if you don't require it) is not a fix - especially for existing apps in the wild. I've found it only occurs on Simulator (XCode 8), devices continue to work with keychain access, will be waiting for a build update from Apple and splitting our test build *(run on simulator) to a different target for the time being.

@0-mykola
Copy link

Yes, I have same issue with simulator.

@soffes
Copy link
Owner

soffes commented Sep 15, 2016

@daviyang35 @tommeier @adman44 Have you tried @Alexs1987's solution?

@WBlackstorm
Copy link

To me @Alexs1987's solution worked. I'm using iOS 10 simulator.

@akbortoli
Copy link

Make sure you enable keychain sharing in the capabilities screen as @Alexs1987 said.
keychain-sharing

@tommeier
Copy link

tommeier commented Sep 15, 2016

@soffes yup, it definitely works on iOS10 simulator again when keychain sharing is enabled, but the fix isn't to enable keychain sharing amongst apps when we're not sharing among apps (I would assume - unless the default has changed only on iOS10 simulator). Definitely a bug in iOS10 simulator specifically (all others fine, and on device with iOS10 is fine). Not sure if there is a workaround, or its wait until a fix is released, test only on device, or create a seperate test-only target that has keychain sharing enabled (until a fix is released).

This issue is affecting frameworks too, so enabling keychain sharing capability isn't a possibility there.

It also happens with the Apple sample code for Touch ID on SecItemAdd

@soffes soffes closed this as completed Sep 16, 2016
Repository owner locked and limited conversation to collaborators Sep 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants