xcodebuild thinks I have an old version of macos
My issue started when I installed system update and updated my macOS to 13.4.1.
when I run xcodebuild I get this message:
Executable requires at least macOS 12.0, but is being run on macOS 10.16, and so is exiting.
By the way, I have xcode version 14.3.1 (I can see it in "About XCode") but when I run "xcodebuild -version" I also get the error message from above.
What I tried:
- Uninstalling and re-installing xcode and command line tools
- Downgrading xcode to 14.3.0
Please let me know how I can fix it.
MacBook Pro 16″, macOS 13.4