granoff / Lockbox

Objective-C utility class for storing data securely in the key chain.
MIT License
847 stars 87 forks source link

SecItemCopyMatching fails with error 34018 when running unittests on device #29

Closed xjki closed 10 years ago

xjki commented 10 years ago

When running my app unittest target on device all [Lockbox setString] messages returns NO and console logs SecItemCopyMatching errors with code 34018. This does not happen when unittests are performed in Simulator.

There is solution/workaround by adding code signing step for unittest target as described in http://stackoverflow.com/a/22305193/63317. May be this is worth mentioning in library documentation.

rivera-ernesto commented 10 years ago

Maybe a pull request to the README? ;)

xjki commented 10 years ago

Done :)