From 9de1e5a3bb024c9165a62343b2fa33efdd2b155a Mon Sep 17 00:00:00 2001 From: Jens Kuhr Hansen Date: Wed, 27 Aug 2025 08:33:26 +0200 Subject: [PATCH 1/2] Fix plistPath when using a prebuilt binary (appPath) --- .../cli-platform-apple/src/commands/runCommand/installApp.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli-platform-apple/src/commands/runCommand/installApp.ts b/packages/cli-platform-apple/src/commands/runCommand/installApp.ts index f7611fbf7..887d1778d 100644 --- a/packages/cli-platform-apple/src/commands/runCommand/installApp.ts +++ b/packages/cli-platform-apple/src/commands/runCommand/installApp.ts @@ -63,7 +63,8 @@ export default async function installApp({ const targetBuildDir = buildSettings.TARGET_BUILD_DIR; const infoPlistPath = buildSettings.INFOPLIST_PATH; - if (!infoPlistPath) { + const plistPath = appPath ? _path().default.join(appPath, "Info.plist") : _path().default.join(targetBuildDir, infoPlistPath) + if (!plistPath) { throw new CLIError('Failed to find Info.plist'); } @@ -89,7 +90,7 @@ export default async function installApp({ [ '-c', 'Print:CFBundleIdentifier', - path.join(targetBuildDir, infoPlistPath), + plistPath, ], {encoding: 'utf8'}, ) From 37d360b13a50bf1918a621a270df5f4e582198d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 1 Oct 2025 12:53:08 +0200 Subject: [PATCH 2/2] fix syntax --- .../src/commands/runCommand/installApp.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/cli-platform-apple/src/commands/runCommand/installApp.ts b/packages/cli-platform-apple/src/commands/runCommand/installApp.ts index 887d1778d..9f8e19762 100644 --- a/packages/cli-platform-apple/src/commands/runCommand/installApp.ts +++ b/packages/cli-platform-apple/src/commands/runCommand/installApp.ts @@ -63,7 +63,9 @@ export default async function installApp({ const targetBuildDir = buildSettings.TARGET_BUILD_DIR; const infoPlistPath = buildSettings.INFOPLIST_PATH; - const plistPath = appPath ? _path().default.join(appPath, "Info.plist") : _path().default.join(targetBuildDir, infoPlistPath) + const plistPath = appPath + ? path.join(appPath, 'Info.plist') + : path.join(targetBuildDir, infoPlistPath); if (!plistPath) { throw new CLIError('Failed to find Info.plist'); } @@ -87,11 +89,7 @@ export default async function installApp({ const bundleID = child_process .execFileSync( '/usr/libexec/PlistBuddy', - [ - '-c', - 'Print:CFBundleIdentifier', - plistPath, - ], + ['-c', 'Print:CFBundleIdentifier', plistPath], {encoding: 'utf8'}, ) .trim();