Question: What would cause an app to use 2 keychain?


#1

The scenario is we have an app lets call it version 1 that uses keychain seamlessly. I can save and retrieve data in it.
Then we release a version 2 it seems to create a new keychain store and use that instead rather using the previous one.


#2

Keychain is unique per bundle id and provisioning profile. Did you change your bundle id when you release version 2?


#3

We checked the Appstore bundleid and the one we are creating, they are similar.

Could it be the provisioning profile then?


#4

it says https://stackoverflow.com/questions/33183676/keychain-access-in-ios-and-provisioning-profiles but can’t find it in official apple docs. You can check also if you are using same keys as before.


#5

Thank you I will look further into this.