Documentation appears to wrongly claim that this is available in 10.15, while in reality it's only 11+. This would lead to a crash on 10.15 since the symbol doesn't exist there.
@@ -323,7 +323,7 @@ MacPermissionStatus CheckPermissionWithPrompt(MacPermissionType type,
break;
}
case kScreenCapture: {
- if (@available(macOS 10.15, *)) {
+ if (@available(macOS 11.0, *)) {
permissionResponse = (CGPreflightScreenCaptureAccess()
? kPermissionAuthorized
: kPermissionDenied);