Read from keychain results in errSecItemNotFound 25300

后端 未结 3 1744
眼角桃花
眼角桃花 2021-01-05 06:40

I store username & password using keychain, sometimes when I tried to get the password of the username, it told me errSecItemNotFound.

I keep that t

相关标签:
3条回答
  • 2021-01-05 06:55

    @graver

    http://opensource.apple.com/source/Security/Security-55471/sec/Security/SecBasePriv.h

    errSecMissingEntitlement = -34018, /* Internal error when a required entitlement isn't present. */

    0 讨论(0)
  • 2021-01-05 06:58

    When reading the keychain, make sure you always build with a provisioning profile linked with the appId that used to create the keychain record.

    0 讨论(0)
  • 2021-01-05 07:02

    Tony: that error is simply OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements.

    This could be happening as a result from using a nonstandard app signing method or some other problem with your entitlements. Make sure you're building simply out of Xcode and not using alternate signing methods unless you completely understand them.

    0 讨论(0)
提交回复
热议问题