Skip to content

Commit eb8ac71

Browse files
committed
Changed updateInfoPlist to assert old library name
1 parent ad2a2c5 commit eb8ac71

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,12 @@ export async function updateInfoPlist({
9292
}
9393

9494
const contents = await readInfoPlist(infoPlistPath);
95-
if (contents.CFBundleExecutable === oldLibraryName) {
96-
contents.CFBundleExecutable = newLibraryName;
97-
}
95+
assert.equal(
96+
contents.CFBundleExecutable,
97+
oldLibraryName,
98+
"Unexpected CFBundleExecutable value in Info.plist",
99+
);
100+
contents.CFBundleExecutable = newLibraryName;
98101
await fs.promises.writeFile(infoPlistPath, plist.build(contents), "utf-8");
99102
}
100103

0 commit comments

Comments
 (0)