Skip to content

Instantly share code, notes, and snippets.

@aclissold
Created June 17, 2015 19:53
Show Gist options
  • Save aclissold/3b95f35d43284a29d25c to your computer and use it in GitHub Desktop.
Save aclissold/3b95f35d43284a29d25c to your computer and use it in GitHub Desktop.
Objective-C from the command line
// cc -fobjc-arc -framework Foundation main.m
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSLog(@"hello, world");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment