Post

Replies

Boosts

Views

Activity

Reply to Crash on "Library not loaded: /usr/lib/swift/libswiftWebKit.dylib" when use XCode 16.3, iOS 18.4
I've also noticed similar to @dsyb that the crash occurs not simply when touching WKWebView, but specifically when calling evaluateJavaScript. ChatGPT provided the following comment about this, which I cannot confirm: This is exactly consistent with how Apple has recently started: Pruning unused Swift overlay libraries more aggressively, And placing them behind version gates in dyld shared caches or dynamic linking rules. Another thing that I've learned through testing is that if you set the minimum iOS target for your application to iOS 18.4 or higher that the problem goes away. In a sense you are breaking iOS 18.3 and below instead of 18.4 and above, but it works if you can bear to support only the very newest versions of iOS.
May ’25