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
The following workaround may help: The path /Library/Developer/CoreSimulator/Volumes/iOS_22E238/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.4.simruntime/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift/libswiftWebKit.dylib is actually a symlink to /Library/Developer/CoreSimulator/Volumes/iOS_22E238/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.4.simruntime/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/System/Library/Frameworks/WebKit.framework/WebKit To resolve the issue, add a build phase that copies libswiftWebKit.dylib (when the target is iphonesimulator and 18.4) into: "$BUILT_PRODUCTS_DIR/libswiftWebKit.dylib" Since BUILT_PRODUCTS_DIR is one of the runtime search paths, the dylib gets correctly resolved and successfully loaded - allowing the app to launch without any problems.
Apr ’25