Skip to content

'react/utils/FollyConvert.h' file not found #1135

@tomekzaw

Description

@tomekzaw

Describe and reproduce the Bug

Hi, thanks again for this wonderful library!

I'm getting the error 'react/utils/FollyConvert.h' file not found when building 11.0.0-alpha.17 for iOS with USE_FRAMEWORKS=static.

/Users/tomekzaw/MyApp/node_modules/@maplibre/maplibre-react-native/ios/components/map-view/MLRNMapViewComponentView.mm:11:9: fatal error: 'react/utils/FollyConvert.h' file not found
   11 | #import <react/utils/FollyConvert.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tomekzaw/MyApp/node_modules/@maplibre/maplibre-react-native/ios/components/map-view/MLRNMapViewComponentView.mm:11:9: note: did not find header 'utils/FollyConvert.h' in framework 'react' (loaded from '/Users/tomekzaw/Library/Developer/Xcode/DerivedData/OdjazdowyKrk-gckrdcdsftcnfrdojyccguwpqmtq/Build/Products/Debug-iphonesimulator/React-Core')
1 error generated.

I was able to get it working by adding the following lines in MapLibreReactNative.podspec:

  install_modules_dependencies(s)
 
+  add_dependency(s, "React-utils", :additional_framework_paths => [
+    "react/utils/platform/ios",
+  ])
 end

I'm not sure if this should be fixed here or on React Native side.

@maplibre/maplibre-react-native Version

11.0.0-alpha.17

Which platforms does this occur on?

iOS Simulator

Which frameworks does this occur on?

Expo

Which architectures does this occur on?

New Architecture

Environment

expo-env-info 2.0.7 environment info:
    System:
      OS: macOS 15.7.2
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.19.4 - ~/.nvm/versions/node/v20.19.4/bin/node
      Yarn: 1.22.22 - /opt/homebrew/bin/yarn
      npm: 10.8.2 - ~/.nvm/versions/node/v20.19.4/bin/npm
      Watchman: 2025.11.10.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.15.2 - /Users/tomekzaw/.rbenv/shims/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 25.1, iOS 26.1, macOS 26.1, tvOS 26.1, visionOS 26.1, watchOS 26.1
      Android SDK:
        API Levels: 30, 31, 33, 34, 35, 36
        Build Tools: 30.0.2, 30.0.3, 31.0.0, 33.0.0, 33.0.1, 34.0.0, 35.0.0, 36.0.0
        System Images: android-33 | Google APIs ARM 64 v8a, android-34 | Google APIs ARM 64 v8a, android-35 | Google Play ARM 64 v8a, android-36 | Google APIs ARM 64 v8a, android-36 | Google Play ARM 64 v8a
    IDEs:
      Android Studio: 2025.2 AI-252.25557.131.2521.14344949
      Xcode: 26.1/17B55 - /usr/bin/xcodebuild

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions