Skip to content

Commit

Permalink
Tell xcode it's okay to remove this directory during the clean step
Browse files Browse the repository at this point in the history
  • Loading branch information
n8henrie committed Sep 19, 2023
1 parent ea23482 commit 4d31ccb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Quicksilver/Tools/qsrelease
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ 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

# `xcodebuild clean` sometimes refuses to remove the build directory and
# 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}")"
Expand Down

0 comments on commit 4d31ccb

Please sign in to comment.