Creates a new access control object with the specified protection type and flags.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
Flags specifying the allowed operations for the item. See
Access Control Create Flags
On return, if an error occurred, the reference pointed at by this parameter refers to an error object that indicates the reason for failure. The caller is responsible for releasing the error object. Pass
NULLfor this parameter to ignore the error.
The newly created access control object.
Accessing keychain items or performing operations on keys that are protected by access control objects may block execution on the main thread. Perform these actions in the background, or use them in combination with the
k attributes to manage user interactions.