Skip to content

Commit 4d0b7df

Browse files
committed
Use bufout spawn in createAppleFramework
1 parent 52ec31d commit 4d0b7df

File tree

1 file changed

+7
-7
lines changed
  • packages/host/src/node/prebuilds

1 file changed

+7
-7
lines changed

packages/host/src/node/prebuilds/apple.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import assert from "node:assert/strict";
22
import fs from "node:fs";
33
import path from "node:path";
44
import os from "node:os";
5-
import cp from "node:child_process";
65

76
import { spawn } from "@react-native-node-api/cli-utils";
87

@@ -77,12 +76,13 @@ export async function createAppleFramework(libraryPath: string) {
7776
// TODO: Consider copying the library instead of renaming it
7877
await fs.promises.rename(libraryPath, newLibraryPath);
7978
// Update the name of the library
80-
// TODO: Make this call async
81-
cp.spawnSync("install_name_tool", [
82-
"-id",
83-
`@rpath/${libraryName}.framework/${libraryName}`,
84-
newLibraryPath,
85-
]);
79+
await spawn(
80+
"install_name_tool",
81+
["-id", `@rpath/${libraryName}.framework/${libraryName}`, newLibraryPath],
82+
{
83+
outputMode: "buffered",
84+
},
85+
);
8686
return frameworkPath;
8787
}
8888

0 commit comments

Comments
 (0)