diff --git a/scripts/build_apple_frameworks.sh b/scripts/build_apple_frameworks.sh index 8ae19eb7b41..5fb51389dd9 100755 --- a/scripts/build_apple_frameworks.sh +++ b/scripts/build_apple_frameworks.sh @@ -153,13 +153,11 @@ for preset_index in "${!PRESETS[@]}"; do echo "Building preset ${preset} (${mode}) in ${preset_output_dir}..." # Do NOT add options here. Update the respective presets instead. - # Xcode multi-config presets leave CMAKE_BUILD_TYPE empty, so force EXECUTORCH_ENABLE_LOGGING per-mode. cmake -S "${SOURCE_ROOT_DIR}" \ -B "${preset_output_dir}" \ + --fresh \ -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY="${preset_output_dir}" \ -DCMAKE_BUILD_TYPE="${mode}" \ - -UEXECUTORCH_ENABLE_LOGGING \ - -DEXECUTORCH_ENABLE_LOGGING=$([ "${mode}" = "Debug" ] && echo ON || echo OFF) \ ${CMAKE_OPTIONS_OVERRIDE[@]:-} \ --preset "${preset}"