ksvc / KSYLive_iOS

金山云直播SDK [ iOS推流+播放 ]融合版 支持美颜滤镜(Beauty Filter)、美声(Beauty Voice)、软硬编(Software/Hardware Encoder) 、网络自适应(Network Auto Adapt)、混音(Audio Mixer)、混响(Reverb)、画中画(PIP)
https://github.com/ksvc/KSYLive_iOS/wiki
941 stars 271 forks source link

iPhoneX 上出现 crash #144

Open jijiucheng opened 6 years ago

jijiucheng commented 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

oceanzhou commented 5 years ago

这个解决了么?

dungdt9x commented 5 years ago

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

oceanzhou commented 5 years ago

更新下最新的sdk,把两个库合并成一个库,这样就可以测试环境和生产环境都可以用了