EarlGrey launches the APP but the screen is blank

杀马特。学长 韩版系。学妹 提交于 2019-12-12 03:34:51

问题


Trying to launch EarlGrey tests on my APP but all that I get is empty screen after the splash screen is opened.

We use 2 different windows for splash screen and main APP and it looks like EarlGrey stacks on the first one. Is there a way to switch the screens in EarlGrey?

That what I have in test output:

2016-03-03 15:00:25.721 XING[23504:165847] Could not kickstart com.apple.AXInspector [268435460 - port: 31499] 2016-03-03 15:00:49.001 XING[23504:165847] Application window hierarchy (ordered by window level, from front to back):

Legend: [Window 1] = [Frontmost Window] [AX] = [Accessibility]

========== Window 1 ==========

UITextEffectsWindow:0x7fbe3bf10e50; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; alpha=1> UIInputSetContainerView:0x7fbe3bc2cff0; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1> UIInputSetHostView:0x7fbe3bc24550; AX=N; AX.frame={{0, 667}, {375, 0}}; AX.activationPoint={187.5, 667}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 667}, {375, 0}}; opaque; alpha=1>

========== Window 2 ==========

UIWindow:0x7fbe3be22b80; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1> |--UIView:0x7fbe3d55d970; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>


回答1:


Thanks for the answer. I was able to found a problem, there was a specific setting for all the UnitTests in our APP. Disabling of those helped to launch the APP properly.



来源:https://stackoverflow.com/questions/35774280/earlgrey-launches-the-app-but-the-screen-is-blank

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!