title: XCode C++, how to use boost dependency from cocoapods?
body: <p>I'm creating a C++ library for iOS and React-Native. I need to access some helper code from the boost framework, which React-Native itself already has as a dependency.</p>
  <p>However, when I try to include the header Xcode tells me it cannot be found:</p>
  <p><a href="https://i.stack.imgur.com/u7X9p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u7X9p.png" alt="enter image description here" /></a></p>
  <p>My library itself is meant to be packaged as a Cocoapods dependency, therefore, I've tried adding the boost dependency to the <code>.podspec</code> but that doesn't seem to do anything to expose the headers.</p>
  <pre class="lang-rb prettyprint-override"><code>require &quot;json&quot;
  
  package = JSON.parse(File.read(File.join(__dir__, &quot;package.json&quot;)))
  
  Pod::Spec.new do |s|
    s.name         = &quot;react-native-wallet-core&quot;
    s.version      = package[&quot;version&quot;]
    s.summary      = package[&quot;description&quot;]
    s.homepage     = package[&quot;homepage&quot;]
    s.license      = package[&quot;license&quot;]
    s.authors      = package[&quot;author&quot;]
  
    s.platforms    = { :ios =&gt; &quot;14.0&quot; }
    s.source       = { :git =&gt; &quot;---.git&quot;, :tag =&gt; &quot;#{s.version}&quot; }
  
  
    s.source_files = &quot;ios/**/*.{h,m,mm}&quot;, &quot;cpp/**/*.{h,cpp}&quot;
  
    s.dependency &quot;React-Core&quot;
    s.dependency &quot;TrustWalletCore&quot;, '~&gt;2.7.2'
    # Doesn't seem to do anything
    s.dependency &quot;boost&quot;
    # doesn't work cannot use path in a podspec
    # s.dependency &quot;boost&quot;, path: &quot;../node_modules/react-native/third-party-podspecs/boost.podspec&quot; 
  end
  </code></pre>
  <p>Any idea what do I need to do to be able to use boost code inside my own C++ code?</p>