I have an app in the app store which worked perfectly fine till first few betas of iOS 10 (i am not exactly sure which one). It also works perfectly fine on iOS 9.3.
Turn on "Keychain Sharing" in the capabilities tab of your target and it will work.