Compile error on MyTarget-Swift.h, unknown class name SCContentSharingPickerObserver

I am working on ScreenCaptureKit sample with SCContentSharingPickerObserver. My Target is SwiftUI based and calling Objective-C class method. I added [MyTarget]-Bridging.h and [MyTarget]-Swift.h

I got compile error of unknown class name SCContentSharingPickerObserver in [MyTarget]-Swift.h. But I do not know how to fix this error since [MyTarget]-Swift.h is Xcode generated file.

I set macOS target is 14.0, swift language ver is 5 Anyone know how to fix this error or waiting for Xcode update?

Compile error on MyTarget-Swift.h, unknown class name SCContentSharingPickerObserver
 
 
Q