【笔记】mac os命令行编译objective-c
最近在学习objective-c,由于只是学习语法,所以想用命令行轻量的练习
Hello.m
// First program example#import Foundation/Foundation.h>int main (int argc, const char * argv[]){NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];NSLog (@"Programming is fun!");[pool drain];return 0;}
编译命令
clang -framework Foundation Hello.m -o hello
如果觉得《【笔记】mac os命令行编译objective-c》对你有帮助,请点赞、收藏,并留下你的观点哦!