When you create a command line tool project in Xcode, you get this, in main.m:
#import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, World!"); } return 0; }
I can run this from Xcode. But I want to compile it so that I can run it from Terminal. What are the steps?
source share