Skip to content

3.2.0《Deprecated》

Choose a tag to compare

@Kyome22 Kyome22 released this 19 Jul 09:01
· 68 commits to main since this release
713cb57

What's Changed

Workaround for libswiftWebKit.dylib

In Xcode 16.4 to Xcode 26 Beta 2, there was a bug that caused a runtime crash in the iOS Simulator due to a change in the WebKit library path (ref). You can avoid the crash by applying the following workaround.

  1. Set User Script Sandboxing to No in the Build Settings.
  2. Write the following script in the Run Script phase of Build Phases.
    if [ "$PLATFORM_DISPLAY_NAME" = "iOS Simulator" ]; then
        KEYWORD="iOS ${TARGET_DEVICE_OS_VERSION}"
        DYLD_FALLBACK_FRAMEWORK_PATH=$(xcrun simctl list devices -v | grep "$KEYWORD" | awk -F'[][]' '{print $2}')
        DYLD_FALLBACK_FRAMEWORK_PATH="${DYLD_FALLBACK_FRAMEWORK_PATH}/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift/"
        LIBRARY_FILE="libswiftWebKit.dylib"
        ln -sf "${DYLD_FALLBACK_FRAMEWORK_PATH}/${LIBRARY_FILE}" "${BUILT_PRODUCTS_DIR}/${LIBRARY_FILE}"
        echo "👉Created an alias for ${LIBRARY_FILE}"
    fi

Note

If you do not need the PDF output feature, or if you do not need to verify its functionality in the simulator, please use the workaround-for-xcode-16.4-16F6 branch.

Full Changelog: 3.1.1...3.2.0