Skip to content

Commit

Permalink
XcodeBuilder: Fix incremental builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kabiroberai committed Nov 15, 2023
1 parent a0caf18 commit d6d93bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ export async function build(mode: BuildMode, config: Config = {}): Promise<strin
ldflags.push("-Xlinker", "-rpath", "-Xlinker", "@loader_path/../../..");
}

const originalBinary = path.join(binaryDir, `${product}.framework`, "Versions", "A", product);
await rm(originalBinary, { force: true });

const result = spawnSync(
"xcodebuild",
[
Expand Down Expand Up @@ -267,7 +270,6 @@ export async function build(mode: BuildMode, config: Config = {}): Promise<strin
throw new Error(`xcodebuild exited with status ${result.status}`);
}

const originalBinary = path.join(binaryDir, `${product}.framework`, "Versions", "A", product);
await Promise.all([
rename(
originalBinary,
Expand Down

0 comments on commit d6d93bc

Please sign in to comment.