If you set "User Script Sandboxing" to "No" in the Build Settings and register the following script in the "Run Script" phase of Build Phases, the simulator will no longer crash in either Xcode 26 or Xcode 16.4.
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: