title: BatchedBridge error in React Native on iOS
body: <p>I have a simple native iOS app that I want to integrate React Native into. When I open the view controller, I get an error: </p>
  
  <pre><code>&gt; Error calling RCTLog.logIfNoNativeHook
  &gt; 
  &gt; Unhandled JS Exception: Could not get BatchedBridge, make sure your
  &gt; bundle is packaged correctly
  &gt; 
  &gt; RCTFatal
  &gt; -[RCTCxxBridge handleError:]
  &gt; __34-[RCTCxxBridge _initializeBridge:]_block_invoke facebook::react::RCTMessageThread::tryFunc(std::__1::function&lt;void ()&gt;
  &gt; const&amp;)
  &gt; facebook::react::RCTMessageThread::runOnQueue(std::__1::function&lt;void
  &gt; ()&gt;&amp;&amp;)::$_1::operator()() const void
  &gt; std::__1::__invoke_void_return_wrapper&lt;void&gt;::__call&lt;facebook::react::RCTMessageThread::runOnQueue(std::__1::function&lt;void
  &gt; ()&gt;&amp;&amp;)::$_1&amp;&gt;(facebook::react::RCTMessageThread::runOnQueue(std::__1::function&lt;void
  &gt; ()&gt;&amp;&amp;)::$_1&amp;&amp;&amp;)
  &gt; std::__1::__function::__func&lt;facebook::react::RCTMessageThread::runOnQueue(std::__1::function&lt;void
  &gt; ()&gt;&amp;&amp;)::$_1,
  &gt; std::__1::allocator&lt;facebook::react::RCTMessageThread::runOnQueue(std::__1::function&lt;void
  &gt; ()&gt;&amp;&amp;)::$_1&gt;, void ()&gt;::operator()() std::__1::function&lt;void
  &gt; ()&gt;::operator()() const invocation function for block in
  &gt; facebook::react::RCTMessageThread::runAsync(std::__1::function&lt;void
  &gt; ()&gt;)
  &gt; __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__
  &gt; __CFRunLoopDoBlocks
  &gt; __CFRunLoopRun CFRunLoopRunSpecific
  &gt; +[RCTCxxBridge runRunLoop]
  &gt; __NSThread__start__
  &gt; _pthread_body
  &gt; _pthread_body thread_start
  </code></pre>
  
  <p>This is my Podfile:</p>
  
  <pre><code># Uncomment the next line to define a global platform for your project
  # platform :ios, '9.0'
  
  target 'NativeRNTest' do
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
    use_frameworks!
  
    pod 'React', :path =&gt; '../node_modules/react-native', :subspecs =&gt; [
      'Core',
      'CxxBridge', # Include this for RN &gt;= 0.47
      'DevSupport', # Include this to enable In-App Devmenu if RN &gt;= 0.43
      'RCTText',
      'RCTNetwork',
      'RCTWebSocket', # needed for debugging
      'BatchedBridge',
      # Add any other subspecs you want to use in your project
    ]
    # Explicitly include Yoga if you are using RN &gt;= 0.42.0
    pod "yoga", :path =&gt; "../node_modules/react-native/ReactCommon/yoga"
  
    # Third party deps podspec link
    pod 'DoubleConversion', :podspec =&gt; '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
    pod 'GLog', :podspec =&gt; '../node_modules/react-native/third-party-podspecs/GLog.podspec'
    pod 'Folly', :podspec =&gt; '../node_modules/react-native/third-party-podspecs/Folly.podspec'
  
    # Pods for NativeRNTest
  
    target 'NativeRNTestTests' do
      inherit! :search_paths
      # Pods for testing
    end
  
    target 'NativeRNTestUITests' do
      inherit! :search_paths
      # Pods for testing
    end
  
  end
  </code></pre>
  
  <p>My environment:</p>
  
  <pre><code>&gt;react-native info
  Scanning folders for symlinks in /Users/[redacted]/Projects/native_rn_demo/node_modules (5ms)
  
  Environment:
  
    OS: macOS Sierra 10.12.6
    Node: 8.9.0
    Yarn: 1.1.0
    npm: 5.6.0
    Watchman: 4.9.0
    Xcode: Xcode 9.2 Build version 9C40b
    Android Studio: 2.3 AI-162.4069837
  
  Packages: (wanted =&gt; installed)
    react: ^16.0.0 =&gt; 16.0.0
    react-native: ^0.51.0 =&gt; 0.51.0
  </code></pre>
  
  <p>I've searched for this problem, and all the solutions are for Android, and don't seem to work here. Any ideas?</p>