Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving a password in keychain on simulator

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?

like image 342
Abhinav Avatar asked Jun 14 '11 15:06

Abhinav


People also ask

How do I lock my iphone simulator?

Yep. In the menu bar when you've got the iOS Simulator open, Click Hardware -> Lock. Note that this looks slightly different than actually sleeping the phone (it keeps the "slide to unlock" screen running), but achieves the same effect. You can also do other nifty things like rotate the device and hit the home button.


2 Answers

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

like image 124
theiOSDude Avatar answered Oct 17 '22 00:10

theiOSDude


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

like image 21
Joey Gibson Avatar answered Oct 16 '22 23:10

Joey Gibson