We use command
xcodebuild -list -json
to get json and parse it to do further stuff on our CI machine.
But since Xcode 13.3 when I run this command in terminal I get
➜ Main git:(export-gsps-while-building-ipa) ✗ xcodebuild -list -json
2022-04-08 19:51:18.917 xcodebuild[27576:698981] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-04-08 19:51:18.918 xcodebuild[27576:698981] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
{
"project" : {
"configurations" : [
...
As you can see, the expected output has two warnings ahead and hence this JSON is not parsable.
I saw the issue after updating Xcode, launching it and updating the command line tools. I restarted my machine (a rarity these days) problem resolved. I suspect the paths are not reloaded after the command line tools are installed so the restart resolved the issue. So less drastic options are re-launching terminal or reloading the environment in he terminal.