Template

Template:iOS Keychain Sharing

From Engineering Client Portal

Keychain Sharing Capability (AppSDK 9.0.0.0 and below)


NOTE: Keychain sharing is only needed for Nielsen AppSDK version 9.0.0.0 and below. Starting from AppSDK 9.1.0.0, persistent storage is handled with NSUserDefaults. If you have AppSDK 9.1.0.0 or higher, you can ignore this section.

NielsenAppSDK requires Keychain Sharing capability must be enabled by application. Please perform following steps to achieve it:

1. Open Xcode and navigate to Target -> Signing & Capabilities -> + Capability -> Search & Add Keychain Sharing

iOS key1.png



2. Scroll down to Keychain Sharing section -> Keychain Groups -> click on + icon -> Xcode automatically adds Bundle ID.

key2.png



Note: It is mandatory to add Bundle ID inside Keychain Groups even if shared app groups are also available and configured so that NielsenAppSDK initializes properly else NielsenAppSDK will complaint with this error on console "Failed to initialize. Application should have \"Keychain Sharing\" capability in the Signing & Capabilities settings"

For more info please visit Apple Keychain Access