如何检测 iOS 钥匙串项目是否不可用? (第一次解锁前)

How to detect if iOS Keychain items not available yet? (before first unlock)

设备解锁之前在后台访问kSecAttrAccessibleAfterFirstUnlock项时是否出现特定错误或行为?

https://developer.apple.com/documentation/security/ksecattraccessibleafterfirstunlock?language=objc

Apple 声明:

This is recommended for items that need to be accessed by background applications.

但是,在这种情况发生之前,有些情况下系统仍然可以启动应用程序,不是吗?

据我所知返回了"Error Code -25308 (errSecInteractionNotAllowed)",但我还无法验证。

来源:https://developer.apple.com/documentation/security/1542001-security_framework_result_codes/errsecinteractionnotallowed?language=objc