LLDebugTool icon indicating copy to clipboard operation
LLDebugTool copied to clipboard

项目内集成QMUIKit后使用LLDebugTool报错

Open pcccccc opened this issue 5 years ago • 5 comments

系统版本:iOS 13.3 具体操作:在同时使用QMUIKit和LLDebugTool两个框架时,调用[[LLDebugTool sharedTool] startWorking]; 程序会循环打印下面的log导致程序崩溃。

+[UIWindow(QMUIUserInterfaceStyleWillChangeNotification) load]_block_invoke_3:49 | QMUILogLevelWarn | UITraitCollection+QMUI | 窗口 : <LLEntryWindow: 0x7f98f5c1d570; baseClass = UIWindow; frame = (0 0; 414 896); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x60000381d470>; layer = <UIWindowLayer: 0x600003626e20>> 设置了 overrideUserInterfaceStyle 属性,可能会影响 QMUIUserInterfaceStyleWillChangeNotification 的时机

pcccccc avatar Mar 24 '20 03:03 pcccccc

目前猜测是使用QMUIThemeManager的原因。

pcccccc avatar Mar 24 '20 05:03 pcccccc

@pcccccc 好的,我后续试下的

HDB-Li avatar Mar 24 '20 06:03 HDB-Li

系统版本:iOS 13.3 具体操作:在同时使用QMUIKit和LLDebugTool两个框架时,调用[[LLDebugTool sharedTool] startWorking]; 程序会循环打印下面的log导致程序崩溃。

+[UIWindow(QMUIUserInterfaceStyleWillChangeNotification) load]_block_invoke_3:49 | QMUILogLevelWarn | UITraitCollection+QMUI | 窗口 : <LLEntryWindow: 0x7f98f5c1d570; baseClass = UIWindow; frame = (0 0; 414 896); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x60000381d470>; layer = <UIWindowLayer: 0x600003626e20>> 设置了 overrideUserInterfaceStyle 属性,可能会影响 QMUIUserInterfaceStyleWillChangeNotification 的时机

image 注释掉这个应该就可以了

didiaodanding avatar Jun 03 '20 09:06 didiaodanding

系统版本:iOS 13.3 具体操作:在同时使用QMUIKit和LLDebugTool两个框架时,调用[[LLDebugTool sharedTool] startWorking]; 程序会循环打印下面的log导致程序崩溃。 +[UIWindow(QMUIUserInterfaceStyleWillChangeNotification) load]_block_invoke_3:49 | QMUILogLevelWarn | UITraitCollection+QMUI | 窗口 : <LLEntryWindow: 0x7f98f5c1d570; baseClass = UIWindow; frame = (0 0; 414 896); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x60000381d470>; layer = <UIWindowLayer: 0x600003626e20>> 设置了 overrideUserInterfaceStyle 属性,可能会影响 QMUIUserInterfaceStyleWillChangeNotification 的时机

image 注释掉这个应该就可以了

是的,就是因为主题的问题。

pcccccc avatar Jun 04 '20 07:06 pcccccc

@didiaodanding @pcccccc Thanks, I will try another way to set theme style. I'm a little busy recently. Try to fix this problem as soon as possible. You can comment on this code temporarily. 😆

HDB-Li avatar Jun 04 '20 07:06 HDB-Li