I would like to add some items to the keychain using "secitemadd", but I need to know first, if this is thread safe.
I have read the documentation from apple, but I am unable to find anywhere stating if its thread-safe.
I would like to add some items to the keychain using "secitemadd", but I need to know first, if this is thread safe.
I have read the documentation from apple, but I am unable to find anywhere stating if its thread-safe.
In another document, Apple says it is thread safe.
Concurrency Considerations
On iOS, all the functions in this API are thread-safe and reentrant.
Keychain isn't thread-safe. If we try to retrieve the keychain information it returns -25300
from time to time in practice. Be careful.
-25300
= errSecItemNotFound to help those reading; also this answer is only partially accurate -- the accepted answer is accurate. macOS and iOS are different. Here, the question clearly states ios thus this answer is incorrect. –
Beebread © 2022 - 2024 — McMap. All rights reserved.