Skip to content

Commit 14b87ac

Browse files
committed
fix: remove clean from xcodebuild to preserve cross-arch artifacts
1 parent 5dada0f commit 14b87ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build-plugin.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ build_plugin() {
3939
DEVELOPMENT_TEAM="$TEAM_ID" \
4040
-skipPackagePluginValidation \
4141
-derivedDataPath "$DERIVED_DATA_DIR" \
42-
clean build 2>&1 | tee "build-plugin-${arch}.log" >&2; then
42+
build 2>&1 | tee "build-plugin-${arch}.log" >&2; then
4343
echo "FATAL: xcodebuild failed for $PLUGIN_TARGET ($arch)" >&2
4444
echo "Check build-plugin-${arch}.log for details" >&2
4545
exit 1
@@ -140,8 +140,8 @@ notarize_zip() {
140140
fi
141141
}
142142

143-
# Clean build directory
144-
rm -rf "$BUILD_DIR"
143+
# Clean build directories
144+
rm -rf "$BUILD_DIR" build/DerivedData
145145
mkdir -p "$BUILD_DIR"
146146

147147
case "$ARCH" in

0 commit comments

Comments
 (0)