Saving a password in keychain on simulator
Asked Answered
A

2

5

In my iPod touch app I am using a library which stores a password in the keychain for future use. Now, this works fine on device but not on simulator.

Is that so there is no key chain in simulator... Shouldn't it point to MAC machine's key chain? Is there any setting I need to do for this?

Anaphora answered 14/6, 2011 at 15:27 Comment(0)
A
6

on simulator, the apps arent signed and hence you are having this problem. check out apples 'GenericKeychain' example - this allows for use both in simulator and on device.

Here it is for your disposal - im using it and works a treat

Absurd answered 14/6, 2011 at 16:25 Comment(5)
Plus..KeychainItemWrapper is not ARCified. If want to use keychain, maybe need to find other libraries or write some codes.Weatherproof
The above link is broken. Here's a link to the new Swift version. Anyone have a working link to the old Objective-C version?Varien
Would be nice to have the objective-c versionOptimal
Here is objective-c KeychainWrapper still alive on Apple's site. It looks to be a version of KeychainItemWrapper that makes some assumptions (like it hard-codes the identifier, assuming your app will have only one item) - developer.apple.com/library/content/documentation/Security/…Abreaction
The link is deadEmmalynne
H
1

Use this https://github.com/ldandersen/scifihifi-iphone/tree/master/security/ That does exactly what you want.

Haddix answered 14/6, 2011 at 15:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.