Skip to content

Commit 07ab1ee

Browse files
committed
fix: use dedicated DerivedData path and clean build for plugins
1 parent fdab8ff commit 07ab1ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/build-plugin.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ build_plugin() {
2323

2424
echo "Building $PLUGIN_TARGET ($arch)..." >&2
2525

26+
# Use a dedicated DerivedData path to avoid stale artifacts from other builds
27+
DERIVED_DATA_DIR="build/DerivedData"
28+
2629
if ! xcodebuild \
2730
-project "$PROJECT" \
2831
-target "$PLUGIN_TARGET" \
@@ -34,7 +37,8 @@ build_plugin() {
3437
CODE_SIGN_STYLE=Manual \
3538
DEVELOPMENT_TEAM="$TEAM_ID" \
3639
-skipPackagePluginValidation \
37-
build 2>&1 | tee "build-plugin-${arch}.log" >&2; then
40+
-derivedDataPath "$DERIVED_DATA_DIR" \
41+
clean build 2>&1 | tee "build-plugin-${arch}.log" >&2; then
3842
echo "FATAL: xcodebuild failed for $PLUGIN_TARGET ($arch)" >&2
3943
echo "Check build-plugin-${arch}.log for details" >&2
4044
exit 1

0 commit comments

Comments
 (0)