From 4d31ccba8a6e0a74940dd84ab4e2aec8711a89f6 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Tue, 19 Sep 2023 10:58:03 -0600 Subject: [PATCH] Tell xcode it's okay to remove this directory during the `clean` step https://gitlab.kitware.com/cmake/cmake/-/issues/22550 --- Quicksilver/Tools/qsrelease | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Quicksilver/Tools/qsrelease b/Quicksilver/Tools/qsrelease index 6078f4ab4..9fd177377 100755 --- a/Quicksilver/Tools/qsrelease +++ b/Quicksilver/Tools/qsrelease @@ -26,6 +26,8 @@ BUILT_PRODUCTS_DIR=$(awk '$1 == "BUILT_PRODUCTS_DIR" { print $NF }' < "${SETTING ## Create the directory (for logging purposes) mkdir -p "${BUILT_PRODUCTS_DIR}" +xattr -w com.apple.xcode.CreatedByBuildSystem true "${BUILT_PRODUCTS_DIR}" + LOG=${BUILT_PRODUCTS_DIR}/build.log DMG_TEMP=${BUILT_PRODUCTS_DIR}/dmg @@ -33,8 +35,7 @@ DMG_TEMP=${BUILT_PRODUCTS_DIR}/dmg # fails with error: # Could not delete `/tmp/QS/build` because it was not created by the # build system. -xcodebuild -scheme 'Quicksilver Distribution' clean || - rm -rf /tmp/QS/build +xcodebuild -scheme 'Quicksilver Distribution' clean # Make sure `LOG` and its parents exist mkdir -p "$(dirname "${LOG}")"