title: Can't compile React Native iOS app to run on physical device, issue with React Native Firebase
body: <p>For some reason since recently, I cannot run my React Native app on a physical device from Xcode or even from the command line. I'm getting the following error:</p>
  
  <pre class="lang-sh prettyprint-override"><code>duplicate symbol '_md5_block_data_order' in:
      /XXX/Library/Developer/Xcode/DerivedData/XXXX-bdrylwsxpcqgzvgkcljteyttcdmr/Build/Products/Debug-iphoneos/BoringSSL-GRPC/libBoringSSL-GRPC.a(md5.o)
      /XXX/project/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(md5_dgst.o)
  ld: 1 duplicate symbol for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>However it works fine from a simulator. And I can upload the app to AppStoreConnect without any issue.</p>
  
  <p>From what I understand it looks like the same symbol exists in 2 libraries. Not sure why, most likely one of the mobile app dependencies.</p>
  
  <p>In the list of Pods installed I have both <code>BoringSSL-GRPC (0.0.3)</code> and <code>OpenSSL-Universal (1.0.2.19)</code></p>
  
  <p>BoringSSL is used by Firebase and OpenSSL is used by Flipper.</p>
  
  <p>This is the list of third party dependencies I use:</p>
  
  <pre><code>  pod 'Firebase/Core', '~&gt; 6.3.0'
  
    pod 'Firebase/Messaging', '~&gt; 6.3.0'
  
    pod 'Firebase/Firestore', '~&gt; 6.3.0'
  
    pod 'Firebase/Auth', '~&gt; 6.3.0'
  
    pod 'TrustKit'
  
    pod 'Stripe', '16.0.0'
  
    pod 'Amplitude-iOS', '~&gt; 4.5'
  
    pod 'Intercom', '~&gt; 5.5.1'
  
    flipper_pods()
  
  </code></pre>
  
  <p>When I remove Firebase all together, it works fine and I can run my app on the device. But I need Firebase...</p>
  
  <p>Any idea how to resolve this?</p>
  
  <p>Thanks!</p>