The are some errors in the macOS 13.3 SDK from current Xcode 14.3 Beta2
All CGDisplayStream... Calls are now flaged like this
CG_EXTERN CGError CGDisplayStreamStop(CGDisplayStreamRef cg_nullable displayStream) CG_AVAILABLE_BUT_DEPRECATED(13.0, 14.0, "Please use ScreenCaptureKit API's stopCaptureWithCompletionHandler: to stop a stream instead");
in macOS 13.0 SDK this call was flagged only flagged with
CG_EXTERN CGError CGDisplayStreamStop(CGDisplayStreamRef cg_nullable displayStream) CG_AVAILABLE_STARTING(10.8);
The Error here is the in MacOS 13.3 SDK it should be something like
CG_AVAILABLE_BUT_DEPRECATED(10.8, 14.0, "Please use ScreenCaptureKit API's ...