Skip to content

Commit 126670b

Browse files
committed
Patch install name of Apple dylibs
1 parent b4dd0ad commit 126670b

File tree

1 file changed

+6
-6
lines changed
  • packages/react-native-node-api-modules/src/node/prebuilds

1 file changed

+6
-6
lines changed

packages/react-native-node-api-modules/src/node/prebuilds/apple.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ 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";
56

67
import { 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

0 commit comments

Comments
 (0)