If you’ve installed full Xcode from the Mac App Store but Homebrew still fails when building packages like telnet
, the problem is usually that macOS is still pointing to the lightweight Command Line Tools instead of full Xcode.
Hereβs how to fix it:
Step 1 β Tell macOS to use full Xcode
Open Terminal and run:
This tells the system to use the complete Xcode installation instead of the Command Line Tools.
Step 2 β Try your Homebrew installation again
Now you can reinstall the package, for example:
It should now build and install without any xcodebuild
errors.
Quick Tip:
To verify that macOS is pointing to the correct Xcode installation, you can run:
It should return:
That’s it! π