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?
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.
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
Use this https://github.com/ldandersen/scifihifi-iphone/tree/master/security/ That does exactly what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With