Skip to content

Commit d6d93bc

Browse files
committed
XcodeBuilder: Fix incremental builds
1 parent a0caf18 commit d6d93bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/builder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ export async function build(mode: BuildMode, config: Config = {}): Promise<strin
236236
ldflags.push("-Xlinker", "-rpath", "-Xlinker", "@loader_path/../../..");
237237
}
238238

239+
const originalBinary = path.join(binaryDir, `${product}.framework`, "Versions", "A", product);
240+
await rm(originalBinary, { force: true });
241+
239242
const result = spawnSync(
240243
"xcodebuild",
241244
[
@@ -267,7 +270,6 @@ export async function build(mode: BuildMode, config: Config = {}): Promise<strin
267270
throw new Error(`xcodebuild exited with status ${result.status}`);
268271
}
269272

270-
const originalBinary = path.join(binaryDir, `${product}.framework`, "Versions", "A", product);
271273
await Promise.all([
272274
rename(
273275
originalBinary,

0 commit comments

Comments
 (0)