diff --git a/local-cli/runIOS/runIOS.js b/local-cli/runIOS/runIOS.js index 8927be98d80226..272280115dc8e8 100644 --- a/local-cli/runIOS/runIOS.js +++ b/local-cli/runIOS/runIOS.js @@ -127,10 +127,10 @@ Try closing the simulator or run the command again without specifying a simulato } } - 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; }