CGDisplayStream... macOS 13.3 SDK Error

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 ...

The same error exists in Xcode 14.3 Beta 3

The same error still exists in Xcode 14.3 RC

Hope this will be fixed otherwise I won't be able to use 14.3...

This is not right even in the final 14.3...

The fix is of course to replace all DEPRECATED(13.0 to DEPRECATED(10.8 in

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Headers/CGDisplayStream.h

Still, it is a shame Apple shipped this in such a state.

Does anyone know if you can modify the SDK headers when using Xcode Cloud? My team has invested a lot of time and effort getting our CI/CD pipeline working in Xcode Cloud but this issue is forcing us to choose between updating the SDK and support older macOS versions. This probably seems like a trivial issue to Apple but it's really going to hurt my team. CGDisplayStream is a critical piece of our product.

This issue still exists with Xcode 14.3.1 RC1... Feedback was filed a while ago: FB12135222

CGDisplayStream... macOS 13.3 SDK Error
 
 
Q