NewStack
NewStack

Reputation: 990

Can't able to Access Keychain After revoke distribution certificate

I am working in project which is already in Appstore submitted by different developer. Now I am trying to submit updated version of the app with different version and build number. I can't able to access previously stored keychain values.

Here is the steps I did

  1. Revoked the old Distribution certificate created by another person and created a new one with my machine.
  2. Regenerated Provisioning Profile which is used by previous developers
  3. Code signed and submitted to App Store
  4. Downloading old build from App Store
  5. Installing the updated build from test flight
  6. Now I can't able to access keychain values already stored.

Now what can I do to retrieve the old keychain value? I have also checked the team ID for Keychain group access it is same as old one. Is there any way I can retrieve the old keychain values.

Upvotes: 1

Views: 489

Answers (2)

NewStack
NewStack

Reputation: 990

Finally I got a solution from apple guides

Note: In iOS, Keychain rights depend on the provisioning profile used to sign your application. Be sure to consistently use the same provisioning profile across different versions of your application.

https://developer.apple.com/library/content/documentation/Security/Conceptual/keychainServConcepts/iPhoneTasks/iPhoneTasks.html

Upvotes: 0

Shobhakar Tiwari
Shobhakar Tiwari

Reputation: 7892

Here is brief answer which may help you to resolve your issue :

keychain group which is tied your team identifier. So, basically, access to keychain after app updates depends on distribution certificate you use, not on the provisioning profile

So if you are saying you revoke all old certificate and the one with the new certificate ( that you created ) that access to keychain groups will be lost for this version.

Upvotes: 1

Related Questions