As answered by Ian L, I also use NPM to manage my scripts.
Example:
{
"scripts": {
"ios": "react-native run-ios --simulator=\"iPad Air 2\"",
"devices": "xcrun simctl list devices"
}
}
This way, I can quickly get what I need:
- List all devices:
npm run devices
- Run the default simulator:
npm run ios