DVTDeviceOperation: Encountered a build number that is incompatible with DVTBuildVersion
18:00 08 Aug 2024

I created a small Swift app using Xcode 15.4 on macOS 14.6.1 (I have since updated to Xcode 16 + macOS 15.0, no change to the behavior). The code is pretty boilerplate, just a simple screencapture app using ScreenCaptureKit. The app builds and runs successfully with no errors. The app's name is kitkap.

My question is, when compiling in Terminal with

xcodebuild -target kitkap -configuration Release

...I get the following "error" output:

DVTDeviceOperation: Encountered a build number "" that is incompatible with DVTBuildVersion.

Googling revealed practically nothing about this mysterious error. Does anyone know what it means or how to supply the proper "DVTBuildVersion"?

Here are some screenshots that might be illustrative:

general

target_properties

xcode