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
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.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Xcode 16 beta 6 LLVMError: LLVMError(description: "file too small to be an archive")
We managed to work around the issue by modifying the object file within the XCFramework. I converted it into a static archive, and now Previews are working perfectly again. Here’s the command I used: ar rcs <target_archive_name> <existing_object_file>
Replies
Boosts
Views
Activity
Sep ’24