mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook Github Bot
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user