Skip to content

Conversation

@Mohamed-kassim
Copy link

@Mohamed-kassim Mohamed-kassim commented Dec 22, 2025

Summary

When using use_frameworks! :linkage => :static (required for Firebase), the iOS build fails with:

  • 'folly/folly-config.h' file not found
  • Could not build module 'jsi'
  • Could not build Objective-C module 'NitroHaptics'

This PR adds the same pod_target_xcconfig fix that was applied to react-native-nitro-modules in mrousavy/nitro#825.

Changes

Added Folly header search paths and preprocessor definitions to NitroHaptics.podspec:

s.pod_target_xcconfig = {
  "HEADER_SEARCH_PATHS" => "${PODS_ROOT}/RCT-Folly",
  "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES",
  "OTHER_CPLUSPLUSFLAGS" => "$(inherited) -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1"
}

Related Issues

Test Plan

  • Tested with React Native 0.77.3 + Firebase (static frameworks) - build succeeds

When using `use_frameworks! :linkage => :static` (commonly required for
Firebase), the build fails with:
- `'folly/folly-config.h' file not found`
- `Could not build module 'jsi'`

This adds the same xcconfig fix applied in react-native-nitro-modules
(mrousavy/nitro#825) to resolve Folly header
resolution issues on React Native 0.77-0.79.

Fixes build errors when using static frameworks with RN < 0.80.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant