Can anyone confirm that SecAccessControlCreateFlags.watch is NOT availabe in Xcode 11 beta 7 (aka beta 6) (11M392r)?
SecAccessControlCreateFlags.watch availability
Add a Comment
Can anyone confirm that SecAccessControlCreateFlags.watch is NOT availabe in Xcode 11 beta 7 (aka beta 6) (11M392r)?
The availability macros
<Security/SecAccessControl.h>
in the Xcode 11.0b7 watchOS SDK make this pretty clear:
typedef CF_OPTIONS(CFOptionFlags, SecAccessControlCreateFlags) {
…
} __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
Sorry for not being more clear... this is a new capability and it doesn't seem to be currently available in Xcode 11 beta 7:
static var watch: SecAccessControlCreateFlags { get }
The system attempts to locate a nearby, paired Apple Watch running watchOS 6 or later
https://developer.apple.com/documentation/security/secaccesscontrolcreateflags/3042482-watch
this is a new capability
Ah, yes, sorry I missed that.
What platform are you working on? Here’s the definition of that flag from
<Security/SecAccessControl.h>
in the macOS SDK in Xcode 11.0b7:
typedef CF_OPTIONS(CFOptionFlags, SecAccessControlCreateFlags) {
…
kSecAccessControlWatch API_AVAILABLE(macos(10.15), ios(NA), macCatalyst(13.0)) = 1u << 5,
…
} …
As you can see, it’s present on macOS 10.15 and its equivalent Mac Catalyst release, but not on iOS or the other iOS-derived platforms.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"