Open jijiucheng opened 6 years ago
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIStatusBar_Modern 0x7fabce459f70> valueForUndefinedKey:]: this class is not key value coding-compliant for the key foregroundView.'
报这个错误,从网上查了一下,貌似是关于 iPhoneX 上 根据状态栏图标判断网络状态的情况,但是根据报错栈信息看的,
*** First throw call stack: ( 0 CoreFoundation 0x0000000113a441e6 exceptionPreprocess + 294 1 libobjc.A.dylib 0x00000001199ee031 objc_exception_throw + 48 2 CoreFoundation 0x0000000113a440b9 -[NSException raise] + 9 3 Foundation 0x0000000114b3ef58 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 226 4 Foundation 0x0000000114a6aebc -[NSObject(NSKeyValueCoding) valueForKey:] + 284 5 iphoneLive 0x00000001108dab65 getNetworkType + 127 6 iphoneLive 0x00000001108d9ced +[KSYAppInfoUnit checkNetworkType] + 76 7 iphoneLive 0x00000001108d6fc9 -[KSYLogClient insertMessageWith:] + 766 8 iphoneLive 0x0000000110c09221 -[KSYMoviePlayerController gatherPlayerStartMessageWithPrepareState:errorCode:] + 1489 9 iphoneLive 0x0000000110c0743c -[KSYMoviePlayerController onPlayerPlaybackFinished:] + 538 10 CoreFoundation 0x00000001139dfb8c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
这个解决了么?
Any new? I got that in iPhone X, XS and XS Max run ios 12. Same ios but it run good in other older device like iphone 6, 6s, 7 and even 8
更新下最新的sdk,把两个库合并成一个库,这样就可以测试环境和生产环境都可以用了
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIStatusBar_Modern 0x7fabce459f70> valueForUndefinedKey:]: this class is not key value coding-compliant for the key foregroundView.'
报这个错误,从网上查了一下,貌似是关于 iPhoneX 上 根据状态栏图标判断网络状态的情况,但是根据报错栈信息看的,
*** First throw call stack: ( 0 CoreFoundation 0x0000000113a441e6 exceptionPreprocess + 294 1 libobjc.A.dylib 0x00000001199ee031 objc_exception_throw + 48 2 CoreFoundation 0x0000000113a440b9 -[NSException raise] + 9 3 Foundation 0x0000000114b3ef58 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 226 4 Foundation 0x0000000114a6aebc -[NSObject(NSKeyValueCoding) valueForKey:] + 284 5 iphoneLive 0x00000001108dab65 getNetworkType + 127 6 iphoneLive 0x00000001108d9ced +[KSYAppInfoUnit checkNetworkType] + 76 7 iphoneLive 0x00000001108d6fc9 -[KSYLogClient insertMessageWith:] + 766 8 iphoneLive 0x0000000110c09221 -[KSYMoviePlayerController gatherPlayerStartMessageWithPrepareState:errorCode:] + 1489 9 iphoneLive 0x0000000110c0743c -[KSYMoviePlayerController onPlayerPlaybackFinished:] + 538 10 CoreFoundation 0x00000001139dfb8c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12