简体   繁体   English

在模拟器上的钥匙串中保存密码

[英]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.在我的 iPod touch 应用程序中,我使用了一个库,该库将密码存储在钥匙串中以备将来使用。 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?那是不是模拟器中没有钥匙链......它不应该指向MAC机器的钥匙链吗? Is there any setting I need to do for this?我需要为此做任何设置吗?

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.查看苹果的“GenericKeychain”示例 - 这允许在模拟器和设备上使用。

Here it is for your disposal - im using it and works a treat 这是供您使用的-我正在使用它并且可以享受

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM