title: How to build React Native App for iPhone?
body: <p>On the iPhone simulator everything works fine. When building the App for the iPhone i get the error:</p>
  
  <blockquote>
    <p>A bundleURL is required to create an RCTRootView</p>
  </blockquote>
  
  <p>In the <strong>AppDelegate.m</strong> i uncomment the following line;</p>
  
  <pre><code>jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
  </code></pre>
  
  <p>And downloaded the prebuild main.jsbundle to the iOS folder in the project root:</p>
  
  <pre><code>curl http://localhost:8081/index.ios.bundle -o main.jsbundle
  </code></pre>