diff --git a/ios/Tflite.h b/ios/Tflite.h index 3854cacb..638fb0ce 100644 --- a/ios/Tflite.h +++ b/ios/Tflite.h @@ -1,6 +1,6 @@ #ifdef RCT_NEW_ARCH_ENABLED -#import "RNTfliteSpec.h" +#import @interface Tflite : NSObject @end diff --git a/react-native-fast-tflite.podspec b/react-native-fast-tflite.podspec index 188ca909..90c76b25 100644 --- a/react-native-fast-tflite.podspec +++ b/react-native-fast-tflite.podspec @@ -42,14 +42,14 @@ 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" - s.pod_target_xcconfig = { + # Merge with existing pod_target_xcconfig to preserve TensorFlow Lite settings + s.pod_target_xcconfig = s.pod_target_xcconfig.merge({ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"", - 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17', - "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", - "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" - } + "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" + }) s.dependency "React-Codegen" s.dependency "RCT-Folly" + s.dependency "RCT-RCTFabric" s.dependency "RCTRequired" s.dependency "RCTTypeSafety" s.dependency "ReactCommon/turbomodule/core"