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
Hi Albert, dyld: Library not loaded: /usr/lib/swift/libswiftWebKit.dylib What I noticed: In iOS 18.4, libswiftWebKit.dylib now exists under: .../iOS18.4.simruntime/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift/ But dyld doesn't seem to look there, and all fallback paths fail. In older runtimes (iOS 16.x, 17.x), the library is in the expected location, and apps run without issue. You can also check via: find /Library/Developer/ -name libswiftWebKit.dylib 2>/dev/null where the Packages were previous located :) Steps to Reproduce: Use Xcode 16.3 on macOS 15.4. Run a Swift app (e.g., using WKWebView) on the iOS 18.4 simulator. App crashes at launch with the missing libswiftWebKit.dylib error. Expected Result: Simulator finds and loads libswiftWebKit.dylib properly. Actual Result: App crashes with dyld error; library not found. Environment: macOS 15.4 (24E214) Xcode 16.3 Simulator: iOS 18.4 (22E238) Apple Silicon M1 Max Workarounds attempted: Simulator reset Reinstalling Command Line Tools Switching simulator runtimes (works fine with iOS 16.2–17.4) Attempting to symlink manually (blocked by system protections)
Apr ’25