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

"WKWebView.navigationDelegate must be used from main thread only" error when running tests #49

Open
n2nco opened this issue Feb 8, 2020 · 6 comments

Comments

@n2nco
Copy link

n2nco commented Feb 8, 2020

image

@pvn-anh-pham
Copy link

+1

@phimage
Copy link
Owner

phimage commented May 11, 2020

You can comment and PR, it's just an assert

@jakejcheng
Copy link

@phimage what do you mean?

@phimage
Copy link
Owner

phimage commented May 25, 2020

@jakejcheng
Copy link

lol I know what assert is but im just not familiar with the whole threading stuff. So you mean that line is not needed?

@phimage
Copy link
Owner

phimage commented May 27, 2020

no you must learn also about assert
assert will not be executed with normal compilation flag (of release configuration)
So this code is only in dev mode, and yes it could be commented..

Now if you want to know about threading stuff, just copy past the error message
in short graphical element must be acceded from main thread only (to avoid many concurent issue, such as draw concurently)

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

4 participants