Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working on iOS 10 #149

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

Comments

Projects
None yet
8 participants
@chrigu1981
Copy link

commented Aug 24, 2016

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

@ggozad ggozad referenced this issue Aug 25, 2016

Closed

iOS10 Support? #48

@Alexs1987

This comment has been minimized.

Copy link

commented Sep 2, 2016

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

@daviyang35

This comment has been minimized.

Copy link

commented Sep 12, 2016

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

This comment has been minimized.

Copy link

commented Sep 14, 2016

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.

@adman44

This comment has been minimized.

Copy link

commented Sep 15, 2016

Yes, I have same issue with simulator.

@soffes

This comment has been minimized.

Copy link
Owner

commented Sep 15, 2016

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

@WBlackstorm

This comment has been minimized.

Copy link

commented Sep 15, 2016

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

@akbortoli

This comment has been minimized.

Copy link

commented Sep 15, 2016

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

@tommeier

This comment has been minimized.

Copy link

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 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.
You can’t perform that action at this time.