开发者

OCUnit doesn't work with security framework?

When attempting to add secure entries into the keychain using:

SecItemUpdate((CFDictionaryRef)queryKeychain, (CFDictionaryRef)updateAttribut开发者_开发百科es);

I'm getting an errSecNotAvailable error returned but only when running my unit test target. Is the keychain not available during unit testing?


Is the security framework included in the OCUint target?

I just tested and I have no errors, I can add an item and change an item in the Keychain in an OCUint test.

I may have my OCUnit setup differently, I am testing against the app, not including the apps files into my unit test.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜