From 159869d250c8d8a7a43c3cfcd114ad8bc674e23e Mon Sep 17 00:00:00 2001 From: Mike Grabowski Date: Fri, 6 Apr 2018 10:36:56 -0700 Subject: [PATCH] Fix: "Metro listenting on port undefined" Summary: Regression introduced in https://github.com/facebook/react-native/commit/2ad34075f1d048bebb08ef30799ac0d081073150. Fixes https://github.com/facebook/react-native/issues/18681 Closes https://github.com/facebook/react-native/pull/18722 Differential Revision: D7535684 Pulled By: hramos fbshipit-source-id: 21bc79091148daba7b668965cd5becaa43117721 --- local-cli/runIOS/runIOS.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/local-cli/runIOS/runIOS.js b/local-cli/runIOS/runIOS.js index 1cbcc4108..ba6e844b5 100644 --- a/local-cli/runIOS/runIOS.js +++ b/local-cli/runIOS/runIOS.js @@ -124,10 +124,10 @@ function runOnSimulator(xcodeProject, args, scheme) { } } - buildProject(xcodeProject, selectedSimulator.udid, scheme, args.configuration, args.packager, args.verbose) - .then((appName) => resolve(selectedSimulator.udid, appName)); + buildProject(xcodeProject, selectedSimulator.udid, scheme, args.configuration, args.packager, args.verbose, args.port) + .then((appName) => resolve({ udid: selectedSimulator.udid, appName })); }) - .then((udid, appName) => { + .then(({udid, appName}) => { if (!appName) { appName = scheme; }