Check your Xcode installation and path
Use a team-authorized Xcode installer that’s compatible with your project. After installation, select the command-line tools in Xcode settings. On first launch, install the required components and accept any required license terms.
If you keep multiple versions installed, explicitly set DEVELOPER_DIRfor each task and record the output of xcodebuild -version . Installing a version doesn’t mean the command line is using it.