title: React Native: RCT-Folly fatal error - 'fmt/compile.h' file not found
body: <p>I want to enable Hermes for my iOS react native project but I have next error:</p>
  <pre><code>In file included from ../ios/Pods/RCT-Folly/folly/Singleton.cpp:35:
  ../ios/Pods/RCT-Folly/folly/portability/FmtCompile.h:19:10: fatal error: 'fmt/compile.h' file not found
  #include &lt;fmt/compile.h&gt;
           ^~~~~~~~~~~~~~~
  </code></pre>
  <p>My config:</p>
  <pre><code>System:
      OS: macOS 11.6.1
    Binaries:
      Node: 12.22.7 - /usr/local/bin/node
      npm: 6.14.15 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.10.1 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    npmPackages:
      @react-native-community/cli: Not Found
      react: 17.0.2 =&gt; 17.0.2 
      react-native: ^0.66.3 =&gt; 0.66.3 
  </code></pre>
  <p>My Podfile:</p>
  <pre class="lang-sh prettyprint-override"><code>platform :ios, '12.0'
  require_relative '../node_modules/react-native/scripts/react_native_pods'
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
  use_frameworks!
  
  workspace 'MyWorkspace'
  
  # Default spec repo
  source 'https://github.com/CocoaPods/Specs.git'
  
  ...
  
  target 'MyTarget' do
      project 'MyProject'
  
      config = use_native_modules!
  
      use_react_native!(
          :path =&gt; config[:reactNativePath],
          # to enable hermes on iOS, change `false` to `true` and then install pods
          :hermes_enabled =&gt; true
      )
      
      ...
  
  end
  </code></pre>
  <p>After some investigation I found that dynamically linking (<code>use_frameworks!</code>) causes this problem and if I link pods statically all work OK. But I must use frameworks for my project so how to resolve this issue?</p>