Skip to content

Commit 741ffee

Browse files
fix: add Folly configuration for RN 0.77-0.79 with static frameworks (#59)
This fixes build failures when using `use_frameworks! :linkage => :static` (often required for Firebase integration) on React Native 0.77-0.79. The fix adds pod_target_xcconfig with: - Header search paths for RCT-Folly - Preprocessor definitions for FOLLY_NO_CONFIG and FOLLY_CFG_NO_COROUTINES - C++ compiler flags for Folly mobile configuration Reference: mrousavy/nitro#825
1 parent 5c08287 commit 741ffee

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/react-native-nitro-device-info/NitroDeviceInfo.podspec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ Pod::Spec.new do |s|
2020
"cpp/**/*.{hpp,cpp}",
2121
]
2222

23+
# Fix for RN 0.77-0.79 with static frameworks (from https://github.com/mrousavy/nitro/pull/825)
24+
s.pod_target_xcconfig = {
25+
"HEADER_SEARCH_PATHS" => "${PODS_ROOT}/RCT-Folly",
26+
"GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES",
27+
"OTHER_CPLUSPLUSFLAGS" => "$(inherited) -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1"
28+
}
29+
2330
s.dependency 'React-Core'
2431
s.dependency 'React-jsi'
2532
s.dependency 'React-callinvoker'

0 commit comments

Comments
 (0)