Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Values that I Put in Keychain Can Be Saved After app is updated?

I have an application in app-store. In My Application I use keychain to save some values(for example: name & surname) as crypted. If I use xCode to update my app , there is no problem about values. They are all saved in keychain as I want. But If I put new version into the app-store and updated my app with the version that is in appstore, My values are all gone :( Does iOS remove the values in keychain if app is updated ?

like image 795
Mehmet AKYOL Avatar asked Feb 12 '13 08:02

Mehmet AKYOL


2 Answers

Note: On iPhone, 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.

Check for more information Keychain Services Programming Guide

like image 53
Rajneesh071 Avatar answered Oct 26 '22 11:10

Rajneesh071


The app's keychain shall not be removed or altered by any means during an update. If you experience this, you must be doing something wrong (see Joachim's questions above).

(Actually deleting the app did not remove its keychain in iOS 4.x, which should normally not happen. I haven't checked whether this was improved with later iOS versions, though.)

Besides, the keychain is not part of the application's filesystem, therefore an update shall not affect its contents. The keychain belongs to a central, secure database (actually it is a special sqlite3 DB). For more details check out the "Keychain Data Protection" chapter in Apple's iOS Security document: http://www.apple.com/ipad/business/docs/iOS_Security_Oct12.pdf .

As a conclusion: your app's keychain shall remain unchanged after an app update.

like image 28
Karoly Nyisztor Avatar answered Oct 26 '22 12:10

Karoly Nyisztor