I have the following file:
doSomething.m
with the following implementation:
#import <Foundation/Foundation.h>
int main(int argc, char * argv[]) {
NSString * appDelegateClassName;
@autoreleasepool {
NSLog(@"main");
}
return 0;
}
if I want to compile I need to run the following command:
clang -framework Foundation doSomething.m -o doSomething-exec
and to see any output and I need to execute the following command:
./doSomething-exec
My question to you guys there is a way just to build/execute the code in the doSomething.m
?
I don't want to be compiling and generating the output file and then executing the executable.