Fix: "Metro listenting on port undefined"
Summary:
Regression introduced in 2ad34075f1
.
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
This commit is contained in:
parent
c6610577fd
commit
159869d250
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue