Skip to content

Commit 9de1e5a

Browse files
Fix plistPath when using a prebuilt binary (appPath)
1 parent 26dd51a commit 9de1e5a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/cli-platform-apple/src/commands/runCommand/installApp.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export default async function installApp({
6363
const targetBuildDir = buildSettings.TARGET_BUILD_DIR;
6464
const infoPlistPath = buildSettings.INFOPLIST_PATH;
6565

66-
if (!infoPlistPath) {
66+
const plistPath = appPath ? _path().default.join(appPath, "Info.plist") : _path().default.join(targetBuildDir, infoPlistPath)
67+
if (!plistPath) {
6768
throw new CLIError('Failed to find Info.plist');
6869
}
6970

@@ -89,7 +90,7 @@ export default async function installApp({
8990
[
9091
'-c',
9192
'Print:CFBundleIdentifier',
92-
path.join(targetBuildDir, infoPlistPath),
93+
plistPath,
9394
],
9495
{encoding: 'utf8'},
9596
)

0 commit comments

Comments
 (0)