title: main.jsbundle does not exist. this must be a bug with + echo 'react native
body: <p>I tried to archive my react native project using <strong>Product</strong> > <strong>Archive</strong> on XCode9.2. But Xcode produce this error: </p>
  
  <pre><code>File /Users/louis/Library/Developer/Xcode/DerivedData/Scavenger-evyvzocndqoghkclcbwewolywniz/Build/Products/Release-iphoneos/Scavenger.app/main.jsbundle does not exist. This must be a bug with
  
  
  My Environment:
    OS: macOS Sierra 10.12.6
    Node: 9.3.0
    npm: 5.5.1
    Watchman: 4.7.0
    Xcode: Xcode 9.2 Build version 9C40b
    Android Studio: 3.0 AI-171.4443003
  
  Packages: (wanted =&gt; installed)
    react: ^16.0.0 =&gt; 16.2.0
    react-native: ^0.50.3 =&gt; 0.50.4
  </code></pre>
  
  <p>I also tried to run on terminal<br>
  <code>react-native bundle --entry-file='index.ios.js' --bundle-output='./ios/Scavenger/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'</code>but ended up with error Loading dependency graph...
      Unexpected end of JSON input</p>
  
  <p>XCode error.</p>
  
  <p><img src="https://i.stack.imgur.com/vd0L3.png" alt="Click here to see XCode error"></p>