应用程序崩溃,原因是在>;=iOS 9.3.1
当我们将backgroundColor或字体设置为UILabel时,应用程序崩溃,原因如下 下面是事故日志应用程序崩溃,原因是在>;=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
*** 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
的崩溃。