WKZombie icon indicating copy to clipboard operation
WKZombie copied to clipboard

'The keyWindow or contentView is missing' message before scraping

Open lorismaz opened this issue 7 years ago • 3 comments

When testing the command line Example from the repo, this message gets printed in the console, before doing anything: The keyWindow or contentView is missing., then the script works as intended.

What does it means and how can we prevent this to show?

lorismaz avatar May 11 '17 17:05 lorismaz

Are you using storyboards? If so, check if it helps to embed your viewcontroller in a navigation controller.

fishfisher avatar May 30 '17 10:05 fishfisher

@fishfisher can you explain a little more please?

avisual avatar Aug 13 '17 21:08 avisual

@avisual Are you seeing this printed to the log as well? For me the log went away when I embedded my root view controller in storyboard to a navigation controller. For me the keyWindow was nil when my main view controller was root.

fishfisher avatar Aug 14 '17 08:08 fishfisher