File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/host/src/node/prebuilds Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import assert from "node:assert/strict";
22import fs from "node:fs" ;
33import path from "node:path" ;
44import os from "node:os" ;
5- import cp from "node:child_process" ;
65
76import { 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
You can’t perform that action at this time.
0 commit comments