SwiftUI app outputting CVDisplayLink related messages to console?

I'm getting a lot of output on the console as I run a MacOS based SwiftUI app I'm developing, for example:

2021-12-08 12:40:14.439565+0000 SpDriveApp[6801:159299] [] [0x7fe6e7830820] CVCGDisplayLink::setCurrentDisplay: 1892262333
2021-12-08 12:40:14.439785+0000 SpDriveApp[6801:159299] [] [0x7fe6e7830800] CVDisplayLinkCreateWithCGDisplays count: 1 [displayID[0]: 0x70c9a1bd] [CVCGDisplayLink: 0x7fe6e7830820]
2021-12-08 12:40:14.439827+0000 SpDriveApp[6801:159299] [] [0x7fe6e7830800] CVDisplayLinkStart
2021-12-08 12:40:14.439853+0000 SpDriveApp[6801:159299] [] [0x7fe6e7830820] CVDisplayLink::start
2021-12-08 12:40:14.439993+0000 SpDriveApp[6801:182706] [] [0x60000f698460] CVXTime::reset

Has anyone else seen this? Have I accidentally switched on a diagnostic tool, or is there something else I am doing wrong?

Answered by jalkut in 707663022

I was frustrated by this today and decided to dig into it. tldr: pass "-cv_note 0" to quiet just these messages and not all system logs. You can read more about my analysis here: https://indiestack.com/2022/03/quieting-cvdisplaylink-logging/

I started getting this yesterday as well!

Me too, xcode 13.2 rc1 and macOS 12.1.

I've started seeing these messages after upgrading to Monterey 12.1. Ugh.

As a rather blunt "workaround", you can hide all of these system logging messages by setting OS_ACTIVITY_MODE=disable as an environment variable in the Scheme you use to run your app. Of course, this will disable all system log messages, including ones that are actually helpful. But I don't know of a more precise way to just turn off messages from specific subsystems. That would be nice.

Same here. I'm currently working on a Metal app, and I'm seeing all these messages after upgrading to Monterey 12.1 and Xcode 13.2

Same for macOs App built on SwiftUI. Started to happen after update to macOS 12.1 and Xcode 13.2

Me too, on an existing project, but not a brand new project (just the simple "Hello, World" starter app).

This won't help anyone, but... Same here. + a busload of [default] invalid display identifier... Very annoying.

Filed a FB report if anyone wants to dupe : FB9822873

Accepted Answer

I was frustrated by this today and decided to dig into it. tldr: pass "-cv_note 0" to quiet just these messages and not all system logs. You can read more about my analysis here: https://indiestack.com/2022/03/quieting-cvdisplaylink-logging/

Hi

Did you solve this?

I have the same problem with a Circle().animation(.linear). If I remove the animation, it works as expected.

SwiftUI app outputting CVDisplayLink related messages to console?
 
 
Q