Revert Objective-C back to using NSLog()

This commit is contained in:
Rhed Shi
2015-10-14 01:16:00 -07:00
parent 21abe04582
commit 401f17b61f

View File

@@ -10,12 +10,5 @@
int main(void) int main(void)
{ {
@autoreleasepool NSLog(@"Hello World");
{
NSFileHandle *_stderr = [NSFileHandle fileHandleWithStandardError];
NSString *string = @"hello, world\n";
NSData *data = [string dataUsingEncoding:[NSString defaultCStringEncoding]];
[_stderr writeData:data];
}
return EXIT_SUCCESS;
} }