I have exactly the same issue, while playing around with Xcode 14.1 on Ventura.
Code that run perfectly fine in Xcode 13x and Monterey, now produces errors such as these mentioned here.
Topic:
App & System Services
SubTopic:
Core OS
Tags: