ios 中的钥匙串是线程安全的吗?

is keychain in ios threadsafe?

我想使用 "secitemadd" 将一些项目添加到钥匙串中,但我首先需要知道这是否是线程安全的。

我已经阅读了 apple 的 documentation,但是我找不到任何地方说明它是否是线程安全的。

在另一个文档中,Apple 说它是线程安全的。

Concurrency Considerations
On iOS, all the functions in this API are thread-safe and reentrant.

Certificate, Key, and Trust Services Reference

钥匙串不是线程安全的。如果我们在实践中不时尝试检索钥匙串信息 returns -25300 。小心。