title: Having trouble loading ios/main.bundlejs for ios react-native itc deploy
body: <p>I am trying to do my first deploy to itc for my ios app that now contains a react-native view.
  i created the bundle using</p>
  
  <pre><code>react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
  </code></pre>
  
  <p>But i cant seem to figure out the syntax to switch the jsCodeLocation to use the new bundle. Most  guides i find are in obj-c, and cant figure out whats wrong with the command i have. when i set a break point here i find it returns jsCodeLocation nil.</p>
  
  <pre><code>  func loadReactNativeView () {
      //let jsCodeLocation : URL = RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index.ios", fallbackResource: nil)
  
      let jsCodeLocation = Bundle.main.url(forResource: "main", withExtension: "jsbundle", subdirectory: "ios")
  
      let rootView : RCTRootView = RCTRootView(bundleURL: jsCodeLocation, moduleName: "HealthStorylines", initialProperties: [:], launchOptions: [:])
      rootView.backgroundColor = #colorLiteral(red: 0.2745098174, green: 0.4862745106, blue: 0.1411764771, alpha: 1)
      let frame = CGRect(x: 0, y: 0, width: self.view.bounds.width, height: self.view.bounds.height - 49)
      rootView.frame = frame
      self.view.addSubview(rootView)
    }
  </code></pre>
  
  <p>Help much appreciated and need advice on how to debug</p>