Explicitly specify application class in wxiOS

Although @"UIApplication" is supposed to be used by default anyhow,
passing "nil" is reported to result in an assertion failure in
'_UIApplicationGetPrincipalClass' when running under the iOS 13.1
simulator, so pass this string explicitly.

Closes https://github.com/wxWidgets/wxWidgets/pull/2035
This commit is contained in:
Rob McKay
2020-08-26 10:49:49 +01:00
committed by Vadim Zeitlin
parent b9f946fcd3
commit 94e8129f3f

View File

@@ -90,7 +90,7 @@ void wxGUIEventLoop::OSXDoRun()
{ {
wxMacAutoreleasePool pool; wxMacAutoreleasePool pool;
const char* appname = "app"; const char* appname = "app";
UIApplicationMain( 1, (char**) &appname, nil, @"wxAppDelegate" ); UIApplicationMain( 1, (char**) &appname, @"UIApplication", @"wxAppDelegate" );
} }
else else
{ {