Xcode was a generation later (G4+) with the new cocoa api in Mac OS 10. So one had to choose from MPW, CodeWarrior, Symantec C++, or MacRelix.
But I’ll look into acquiring CodeWarrior for the iMac since there’s a few Abandonware sites out there that have .toast/hfs iso images one could use. Just need to make sure I have the licence and the technical ability to reauthor the disk if it gets mishandled or misplaced.
However in the mean time MacRelix should be installed and does provide an IDE, Unix environment which includes sockets, a shell, ports of perl and Git, plus a full C/C++ compiler that builds binaries which work on 68K and PowerPC Mac systems. MacRelix can compile with Carbon to run natively in OS X. (Think of it as plan9ports or cygwin but for System 7-9).