Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SciFi-HiFi Keychain problem - SecKeychainItemRef undeclared error

I'm trying to use this class:

http://log.scifihifi.com/post/55837387/simple-iphone-keychain-code

to save data to the keychain on the iPhone. I've included the header and the .m file in my application and included the security framework, however I'm still getting these undeclared errors.

I can't seem to find any tutorials or help file for setting up this class within a project, so I'm led to believe that it's not that difficult. Just causing me problems.

I'm running the 3.0 sdk, though I don't think that will affect things much.

Cheers in advance!

like image 507
mac_55 Avatar asked Dec 07 '25 06:12

mac_55


1 Answers

I believe the full iPhone Keychain API is now available in the simulator (as of 3.0)... just make sure any #ifdefs that refer to

TARGET_ IPHONE_SIMULATOR
are disabled, and you should be fine.
like image 111
Ben Gottlieb Avatar answered Dec 08 '25 18:12

Ben Gottlieb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!