回帖:Xcode 14 can fail to find tools using xcodebuild -find (which is used by xcrun and the wrappers in /usr/bin such as /usr/bin/clang) if first launch content isn’t installed. (98008921)
Workaround: Run xcodebuild -runFirstLaunch, or launch Xcode.app first.