xcrun -sdk macosx10.7 -run gcc -isysroot $(xcodebuild -version -sdk macosx10.7 Path) test.m -o test
test.m
#include <stdio.h>
int main(){
printf("hello world");
return 0;
}
xcrun -sdk macosx10.7 -run gcc -isysroot $(xcodebuild -version -sdk macosx10.7 Path) test.m -o test
#include <stdio.h>
int main(){
printf("hello world");
return 0;
}