Xcode 16.2 runs well, but encountered the problem in Xcode 16.3.
Crash on "Library not loaded: /usr/lib/swift/libswiftWebKit.dylib" when use XCode 16.3, iOS 18.4
I've also noticed that this specifically seems to occur only with the in:in: variant of this method. If you call the older pre-iOS 14+ method it does not crash, but it also lacks the ability to limit the scope like in:in: provides.
Hi all. +1 on this issue. Still present in Xcode 26.0 beta 1.
Seems like there's a simple fix to this: Add an environment variable for the missing fallback directory.
For example:
DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.5.simruntime/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift
The same as the above would apply to a different simulator combo.
I'm seeing this both in Xcode 16.3 and Xcode 26.
Without changing anything in the app, if I go back to Xcode 16.3 then everything works fine.
I've created a feedback (FB18097025) with Xcode and console output and some other information including a copy of the UIViewControllerRepresentable that uses the safari web view and therefore is likely the cause of the crash.
B the way, I don't know if this helps anyone, but if you set your project to be the same version as the simulator then it works.
EX:
Xcode 16.4 -> project iOS 18.4 and simulator iOS 18.4 Xcode 26 -> project iOS 26 and simulator 26
Mind you I have never seen this happen in a minor version so it still feels like something broke, but if you can set your version to match then that should fix it
We are seeing the same in our project with Xcode 16.4 and Xcode 26
This is also affecting hundreds of developers at my company (Xcode 16.4). We're using a workaround to explicitly copy libswiftWebKit.dylib, but the app still crashes if relaunched without having been redeployed from Xcode.