[Interest] iOS 12 iPhoneX crashing on app launch

Jason H jhihn at gmx.com
Fri Sep 21 22:12:54 CEST 2018


2018-09-21 16:03:42.482151-0400 webtestkit[600:263350] machine iPhone10,3
2018-09-21 16:03:42.482208-0400 webtestkit[600:263350] version Darwin Kernel Version 18.0.0: Tue Aug 14 22:07:16 PDT 2018; root:xnu-4903.202.2~1/RELEASE_ARM64_T8015
2018-09-21 16:03:42.482231-0400 webtestkit[600:263350] sysname Darwin
2018-09-21 16:03:42.482252-0400 webtestkit[600:263350] nodename Christophers-iPhone
2018-09-21 16:03:42.482272-0400 webtestkit[600:263350] release 18.0.0
2018-09-21 16:03:42.492043-0400 webtestkit[600:263504] [CoreBluetooth] XPC connection invalid
2018-09-21 16:03:42.492938-0400 webtestkit[600:263350] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIStatusBar_Modern 0x111d07d20> valueForUndefinedKey:]: this class is not key value coding-compliant for the key foregroundView.'
*** First throw call stack:
(0x19b57bef8 0x19a749a40 0x19b493dcc 0x19bf87e54 0x19befb650 0x1001edd9c 0x1001ef184 0x1001ef0b4 0x1001ef1b4 0x1001e58fc 0x10059cf8c 0x10059cc38)
libc++abi.dylib: terminating with uncaught exception of type NSException

I've heard that this is fixed by:
https://github.com/pili-engineering/PLPlayerKit/issues/328#issuecomment-357839612

NSArray *subviews = nil;
id statusBar = [[UIApplication sharedApplication] valueForKey:@"statusBar"];
if ([statusBar isKindOfClass:NSClassFromString(@"UIStatusBar_Modern")]) {
    subviews = [[[statusBar valueForKey:@"statusBar"] valueForKey:@"foregroundView"] subviews];
} else {
    subviews = [[statusBar valueForKey:@"foregroundView"] subviews];
}

But I don't know where to put the code, or if it'a Qt problem at all. The arrached pic makes me think Qt's UIApplicationMain is implicated?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2018-09-21 at 4.08.15 PM.png
Type: image/png
Size: 27981 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180921/66942bcf/attachment.png>


More information about the Interest mailing list