evgenyneu / keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
MIT License
2.82k stars 345 forks source link

Keychain Objective-C with access group return nil #92

Open hendyevan opened 5 years ago

hendyevan commented 5 years ago

Hi, im using your library for my objective-c project based on your objective-c sample. The library work well for saving and getting data from keychain. But when i add accessGroup, its always returning nil when I try to get data from keychain.

This is my code :

screen shot 2018-11-29 at 16 20 35

entitlements & keychain capabilities :

screen shot 2018-11-29 at 16 20 10 screen shot 2018-11-29 at 16 20 19

And this is when i try your sample project :

screen shot 2018-11-29 at 16 32 21 screen shot 2018-11-29 at 16 32 28

But when im using swift project and add accessGroup to keychain, it's works well.

evgenyneu commented 5 years ago

Thanks for reporting, @hendyevan. I suppose you used your App ID prefix for the access group, as described here?