is there a simple way to create a command-line tool in Objective C?
I’d rather not use XCode, because XCode has targets and executables, and just complicated stuff.
I’d like to go classic way, just create a Makefile, compile something get an executable, play with it.
—
If this is not possible, is there any way to run the executable I get from regular XCode CL project? It creates a build and again – complicated stuff.
I just want to use my terminal instead of XCode’s Console.
Yes. Just write your files as normal Objective-C files and compile with GCC or Clang, linking in the Foundation framework. It’s hardly different from a normal C program.
Simple example: