File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/react-native-node-api-modules/src/node/prebuilds Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ 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" ;
56
67import { spawn } from "bufout" ;
78
@@ -75,12 +76,11 @@ export function createAppleFramework(libraryPath: string) {
7576 // TODO: Consider copying the library instead of renaming it
7677 fs . renameSync ( libraryPath , newLibraryPath ) ;
7778 // Update the name of the library
78- // Leaving this out for now, since it will be renamed when copied anyway
79- // cp.spawnSync("install_name_tool", [
80- // "-id",
81- // `@rpath/${libraryName}.framework/${libraryName}`,
82- // newLibraryPath,
83- // ]);
79+ cp . spawnSync ( "install_name_tool" , [
80+ "-id" ,
81+ `@rpath/${ libraryName } .framework/${ libraryName } ` ,
82+ newLibraryPath ,
83+ ] ) ;
8484 return frameworkPath ;
8585}
8686
You can’t perform that action at this time.
0 commit comments