Recording UI test involving WKWebView crashes Xcode

When using a WKWebView and trying to record a UI unit test, clicking on or scrolling the WKWebView crashes Xcode with 100% repeatability.


This makes recording UI tests involving a WKWebView impossible.


Is this a known issue? I have a video and a sample app that demonstrate the crash if it's helpful.

Replies

Is this a known issue?

Not that I’m aware of.

I have a video and a sample app that demonstrate the crash if it's helpful.

You should definitely file bug report with that info. Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I filed a bug and it was marked as a duplicate.


https://bugreport.apple.com/web/?problemID=38190991


I can't seem to look at the bug that mine is a duplicate of.

I filed a bug …

Thanks.

I can't seem to look at the bug that mine is a duplicate of.

Indeed. As things currently stand all you can see is the bug number (r. 33593609) and its open/closed status.

I had a look at the original bug and I can’t offer any predictions as to when it will be fixed. However, I will note that your bug was specifically called out as adding information that will be useful in its investigation.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Any news when this will be fixed? I mean this can be reproduced every time regardless of the wkwebview contents.


This bug has existed about 6 months already. First occured when iOS 11 came out, I think.

Any news when this will be fixed?

I can’t predict the future, alas, and my management requires that I not pretend than I can.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Same happening for me. Filed a bug report, too.

Xcode 9.3 btw.


Did anyone find a solution/workaround for this?

Problem is still reproducible on XCode 9.4.

@eskimo -- can someone please follow up on this?

I took another look at the bug mentioned above (r. 33593609) and it seems to indicate that it’s fixed in Xcode 10.0b3 and later. Have you tried it on the latest Xcode 10 beta seed?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I have this issue as well. This affects ionic-generated apps, and I would assume other cordova-based platforms.

I have this issue as well.

On Xcode 9? Or Xcode 10 beta? If you haven’t tried the latter, please do so and let us know how that pans out.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

According to this linkthe bug 33593609 seems to be solved with xcode 10.

I haven't tried it yet, if I happen to try I warn you if it works.

I tested this on Xcode 11 Release Version (11A420a), and the Xcode crashes 100%.


Both with macOS 10.14.6 and macOS 10.15 beta 8.


I am not sure if Xcode 10 fixed this problem but it seems Xcode 11 still have this problem.

Still crashing on XCode 1.3.1 (11C504)


Any Workarounds or Fixes?

Still crashes on Xcode 11.6.