In my case, importing WebKit and displaying WKWebViews works, but calling some specific APIs like createPDF triggers the exact same issue.
The only fix I found was changing the deployment target to 18.4 or 18.5, in the build settings of a duplicated Xcode configuration I use only to run my app in the simulator.
FB17731385 if anyone at Apple is reading this.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: