yingmu52
9/8/2017 - 2:25 AM

How to Run Objective-C

clang -objc-arc -framework Foundation main.m -o program
./program
rm program
#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]){
  @autoreleasepool {
    NSLog (@"Programming is fun!");
  }
  return 0;
}