From 50d3a15cc815caad55189db2bac06e8a88574212 Mon Sep 17 00:00:00 2001 From: Samuel Beaulieu Date: Thu, 29 Jan 2026 13:33:33 -0500 Subject: [PATCH] fix: error when running Expo prebuild on SDK 54+ --- react-native/theta-client-react-native.podspec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/react-native/theta-client-react-native.podspec b/react-native/theta-client-react-native.podspec index 1731e45287..503a50350b 100644 --- a/react-native/theta-client-react-native.podspec +++ b/react-native/theta-client-react-native.podspec @@ -21,14 +21,18 @@ Pod::Spec.new do |s| # Don't install the dependencies when we run `pod install` in the old architecture. if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then - s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" + if ENV['RCT_USE_RN_DEP'] != '1' + s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" + end s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"", "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" } s.dependency "React-Codegen" - s.dependency "RCT-Folly" + if ENV['RCT_USE_RN_DEP'] != '1' + s.dependency 'RCT-Folly', folly_version + end s.dependency "RCTRequired" s.dependency "RCTTypeSafety" s.dependency "ReactCommon/turbomodule/core"