title: What is proper way to use cocoapods with React Native (0.43.4) in ios?
body: <p>I have dug through a number of posts trying to set up a react native project using cocoapods for native ios libraries but I inevitably end up with an error for a missing file in <code>#import &lt;React/RCTBundleURLProvider.h&gt;</code> statement in my <code>AppDelegate.m</code> file.</p>
  
  <p>What is the proper way to use cocoa pods with react-native? At the time of this post my current version of RN is 0.43.4 and I'm using Xcode 8.2.1.</p>
  
  <p>This was my process, curious where I might be going wrong:</p>
  
  <p>1) In the terminal, I create a new project using <code>react-native init TestProject</code></p>
  
  <p>2) I run <code>pod init</code> in the ios directory of that project</p>
  
  <p>3) I add a dependency in my podFile and run <code>pod install</code></p>
  
  <p>4) The install process succeeds, but I see a warning that my targets <code>override the 'OTHER_LDFLAGS</code>' and it's suggested I use <code>$(inherit)</code> in my linker flags in Xcode.</p>
  
  <p>5) So based on <a href="https://stackoverflow.com/questions/18376416/the-target-overrides-the-other-ldflags-build-setting-defined-in-pods-pods">this SO post</a> I add <code>$(inherited)</code> to <em>Project> TestProject > BuildSettings > linking> Other Linker Flags</em> which was otherwise empty. I also checked and saw that <code>$(inherited)</code> was already present in <em>Targets > TestProject> Build Settings> Linking> Other Linker Flags</em> and PreProcessor Macros as well.</p>
  
  <p>6) At this point I see <strong>React/RCTBundleURLProvider.h file not found</strong> error on the <code>#import &lt;React/RCTBundleURLProvider.h&gt;</code> statement in <code>AppDelegate.m</code></p>
  
  <p>7) Based on <a href="https://stackoverflow.com/questions/40368211/rctbundleurlprovider-h-file-not-found-appdelegate-m">this SO post</a> I try deleting the <code>node modules</code> directory and back in the terminal run <code>npm install</code> and when complete <code>'react-native upgrade'</code>. When it asks me if I want to replace <code>AppDelegate.m</code> and <code>project.pbxproj</code> files I say yes.</p>
  
  <p>8) Back in xCode I clean my build but still have the error from step 6 importing <code>&lt;React/RCTBundleURLProvider.h&gt;</code></p>