From 94e8129f3fdee67a8e7d0c44892d7c5d1ce9348e Mon Sep 17 00:00:00 2001 From: Rob McKay Date: Wed, 26 Aug 2020 10:49:49 +0100 Subject: [PATCH] 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 --- src/osx/iphone/evtloop.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/iphone/evtloop.mm b/src/osx/iphone/evtloop.mm index f051fd49b5..8c51b1c348 100644 --- a/src/osx/iphone/evtloop.mm +++ b/src/osx/iphone/evtloop.mm @@ -90,7 +90,7 @@ void wxGUIEventLoop::OSXDoRun() { wxMacAutoreleasePool pool; const char* appname = "app"; - UIApplicationMain( 1, (char**) &appname, nil, @"wxAppDelegate" ); + UIApplicationMain( 1, (char**) &appname, @"UIApplication", @"wxAppDelegate" ); } else {