ScreenCaptureKit - Sample project need obtain screen recording permissions every time.

Get screen recording permission window show every time when I run the ScreenCaptureKit sample project on macOS Sonoma Beta5:

Even though I've already provided permissions in the screen recording permissions:

This box keeps popping up, and until I remove the old recorded "CaptureSample" screen-recording permissions in "System Settings->Screen Recording" and add them again, it won't be able to record.

This issue happens many times a day!

Does anyone know how to fix it?

Thanks~

It turns out that this problem can be avoided by signing the project properly.

FWIW I ran into the same issue @Christal Did you have to request any additional permissions?

Did you run into the issue with streamOutput not being found?

ScreenCaptureKit - Sample project need obtain screen recording permissions every time.
 
 
Q