Same problem here as well with Xcode 14.3 and Mac OS 13.3.1. The issue is solved by accepting the updated agreement on https://developer.apple.com/account (after several minutes later).
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: