The React Native CLI will not run the specified simulator. When I enter
/usr/local/bin/node /usr/local/lib/node_modules/react-native-cli run-ios ‑‑simulator="iPhone X"
the simulator runs as expected, but insists on running in an iPhone 6, regardless of what simulator I specify, and if I select an additional hardware from the simulator app's menu, the one that launches does not show my project. (In fact, if I an iPhone X, it shows an app that I worked on some time ago instead.)
I've uninstalled and reinstalled the react-native-cli, and have no additional global ios-sim (though I had one once).
How do I get react-native-cli to run my app in the specified hardware?
My starting place for encountering these errors is simply (1) to install react-native-cli, (2) install WebStorm, (3) build a default React Native project there, and (4) run the project using the default iOS run configuration there. (WebStorm 2018.1.5; macOS 10.13.5; React Native CLI 2.0.1; Node 10.6.0)
from How do I get 'react-native-cli' to run my app in the specified hardware?
No comments:
Post a Comment