Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/98.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
应用程序崩溃,原因是在>;=iOS 9.3.1_Ios_Objective C_Iphone_Xcode_Crash - Fatal编程技术网

应用程序崩溃,原因是在>;=iOS 9.3.1

应用程序崩溃,原因是在>;=iOS 9.3.1,ios,objective-c,iphone,xcode,crash,Ios,Objective C,Iphone,Xcode,Crash,当我们将backgroundColor或字体设置为UILabel时,应用程序崩溃,原因如下 下面是事故日志 *** Assertion failure in void PushNextClassForSettingIMP(id, SEL)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/UIAppearance.m:757 *** Terminating app due to uncaught

当我们将backgroundColor或字体设置为UILabel时,应用程序崩溃,原因如下 下面是事故日志

*** Assertion failure in void PushNextClassForSettingIMP(id, SEL)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/UIAppearance.m:757
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Please file a radar on UIKit if you see this assertion.'
这是从iOS 9.3.1开始的

下面这行的崩溃

[self setBackgroundColor:[UIColor whiteColor]];
请查找所附的崩溃截图

下面是崩溃截图

我建议您按照错误消息建议,在上提交错误。我唯一的其他建议是确保代码在主队列上运行。MGAsynchImageView是什么类型的类?是指UIView还是UIViewController?它是UIView子类@Rushi@RoboticCat代码在主线程中运行,并且不会每次都崩溃。这种情况很少发生,而且很难重现崩溃。由于使用“所有异常”断点运行单元测试,导致了具有
PushNextClassForSettingIMP
的崩溃。