How to get react-native run-ios to open in iTerm instead of Terminal on a macOS?

emmby picture emmby · Jun 14, 2016 · Viewed 14.6k times · Source

How can somebody configure react-native run-ios to execute in iTerm instead of Terminal on OSX? By default, it opens a new Terminal window, but Terminal doesn't work as well with my window manager as iTerm does.

Answer

emmby picture emmby · Jun 14, 2016

Daniel's solution worked, but as soon as I reinstalled node_modules it stopped working.

To make the change persistent, right-click on launchPackager.command in node_modules/react-native/scripts/ and choose Get Info… Then change the "Open with:" section to iTerm, and click on Change All…

enter image description here