Commit 43facbc8 authored by DanmeiChen's avatar DanmeiChen

fix: for recent xcode, compilation error[null passed to a callee that requires a non-null argument]

parent 84330c27
......@@ -58,7 +58,7 @@ int main(int argc, char * argv[]) {
g_argv=argv;
pthread_create(&main_thread,NULL,_apple_main,NULL);
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int value = UIApplicationMain(0, nil, nil, nil);
int value = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return value;
pthread_join(main_thread,NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment