title: React Native iOS simulator "Connect to Metro to Develop Javascript"
body: <p>I'm running a react native app and constantly running into the issue of the app not connecting to the code to do automatic updates.</p>
  <p>Things I've tried:</p>
  <ul>
  <li>Reloading main.jsbundle via the following command: <code>npx react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios/assets</code></li>
  <li>Completely removing node and react native from my computer</li>
  <li>Restarting my computer</li>
  <li>Running on a physical device and running on the simulator</li>
  <li>Cleaning derived data in Xcode</li>
  </ul>
  <p>This is the screen on starting up, which offers the advice, &quot;Connect to Metro to develop JavaScript.&quot;</p>
  <p><a href="https://i.stack.imgur.com/2Lk5l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Lk5l.png" alt="Connect to Metro to develop JavaScript." /></a></p>
  <p>From the metro bundler that automatically starts up, I get this message when I type 'r' to reload that says, &quot;React Native: No apps connected.&quot;</p>
  <p><a href="https://i.stack.imgur.com/RCXj6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RCXj6.png" alt="&quot;No apps connected&quot;" /></a></p>
  <p>I'm using 0.61 and always have been.</p>
  <p>What else should I try?</p>
  <p><strong>EDIT</strong></p>
  <p>I was able to get it working by restarting my computer (again).</p>
  <p>Every once in a while, a restart does the trick, yet most of the time it doesn't work. There still has to be a more reliable way of fixing this.</p>