This thread is the place to post if:
you’re encountering -34018 errors being returned by the Security framework
the problem is intermittent, that is, it shows up very occasionally on user devices in the field but is otherwise hard to reproduce
IMPORTANT Error -34018 has other causes. Before posting here, make sure to read the Error -34018 errSecMissingEntitlement pinned post.
Apple has been tracking an issue where Security framework APIs can return -34018 on some user devices in the field. The typical observed behaviour is:
After running successfully for a while, your app starts receiving -34018 from various Security APIs, most commonly the keychain APIs.
Those errors persist until the app is terminated and relaunched (or the device is restarted).
The problem shows up intermittently on a small percentage of user devices in the field.
The problem only affects iOS-based platforms (iOS, watchOS, tvOS).
Apple has been working hard to investigate this issue and believes we have fixed some of its root causes. However, it is a complex problem and it’s possible that there could be others. If you’re still seeing this problem on the latest iOS release, feel free to post your experiences to this thread.
Note This thread is the continuation of an older thread here on DevForums; I’ve locked that old thread for reasons explain in the last post on that thread.
That thread was itself a continuation of an even older thread on the old DevForums, which became read-only when the old DevForums was decommissioned.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"