Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pcccccc opened this issue Mar 24, 2020 · 5 comments
Open

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

pcccccc opened this issue Mar 24, 2020 · 5 comments

Comments

@pcccccc
Copy link

pcccccc commented Mar 24, 2020

系统版本: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
Copy link
Author

pcccccc commented Mar 24, 2020

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

@HDB-Li
Copy link
Owner

HDB-Li commented Mar 24, 2020

@pcccccc 好的,我后续试下的

@didiaodanding
Copy link

系统版本: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
Copy link
Author

pcccccc commented Jun 4, 2020

系统版本: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
注释掉这个应该就可以了

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

@HDB-Li
Copy link
Owner

HDB-Li commented Jun 4, 2020

@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 pushed a commit that referenced this issue Jun 20, 2020
Fixes #89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants