Skip to content

Commit

Permalink
Fix: "Metro listenting on port undefined"
Browse files Browse the repository at this point in the history
Summary:
Regression introduced in 2ad3407.

Fixes #18681
Closes #18722

Differential Revision: D7535684

Pulled By: hramos

fbshipit-source-id: 21bc79091148daba7b668965cd5becaa43117721
  • Loading branch information
grabbou authored and facebook-github-bot committed Apr 6, 2018
1 parent c661057 commit 159869d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions local-cli/runIOS/runIOS.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 159869d

Please sign in to comment.