Then why use Xcode? Mac is essentially BSD under the hood so basically any Linux CLI tool works fine, and GUI applications work reasonably well with XQuartz or whatever it’s called these days.