title: How to remove use_frameworks! AND keep using swift pods on an objective-c project?
body: <p>our project is an <strong>Objective-c</strong> project.</p>
  
  <p>Since we're using <code>react-native-firebase</code> we <a href="https://github.com/invertase/react-native-firebase/issues/1106#issuecomment-405030305" rel="noreferrer"><strong>can't use</strong></a> <code>use_frameworks!</code> in cocoapods any more.</p>
  
  <p>The problem is we have a <strong>swift pod dependency</strong> (<a href="https://github.com/mxcl/PromiseKit" rel="noreferrer">PromiseKit</a>) and to use swift dependencies we must use <code>use_frameworks!</code> as far as I understand.</p>
  
  <p>What I'm trying to do is have the best of both worlds, aka:</p>
  
  <ul>
  <li>remove <code>use_frameworks!</code> so that <code>react-native-firebase</code> works AND</li>
  <li>keep the <code>PromiseKit</code> swift dependency.</li>
  </ul>
  
  <p><strong>current Podfile:</strong></p>
  
  <pre><code>platform :ios, '10.0'
  
  target 'TestApp' do
  
      use_frameworks!
  
      # swift pod
      pod 'PromiseKit'
  
      # react-native-firebase
      pod 'Firebase/Core', '~&gt; 5.3.0'
      pod 'Firebase/DynamicLinks', '~&gt; 5.3.0'
      pod 'Firebase/Messaging', '~&gt; 5.3.0'
  
  end
  </code></pre>
  
  <p>I noticed there's this command <code>:modular_headers =&gt; true</code> or <code>use_modular_headers</code> which I sense may or may not be relevant to the solution I'm looking for since <a href="http://blog.cocoapods.org/CocoaPods-1.5.0/" rel="noreferrer">Cocoapods 1.5</a> but I can't seem to connect the dots.</p>
  
  <h1>Edit:</h1>
  
  <p>If I remove <code>use_frameworks!</code> (even if I replace it with <code>use_modular_headers!</code>) I get this error:</p>
  
  <p><a href="https://i.stack.imgur.com/D7Lf7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/D7Lf7.png" alt="enter image description here"></a>
  Any help please?</p>