diff --git a/packages/react-native/scripts/cocoapods/__tests__/new_architecture-test.rb b/packages/react-native/scripts/cocoapods/__tests__/new_architecture-test.rb index 0b5f77d9ee4667..b10ef21f145251 100644 --- a/packages/react-native/scripts/cocoapods/__tests__/new_architecture-test.rb +++ b/packages/react-native/scripts/cocoapods/__tests__/new_architecture-test.rb @@ -163,6 +163,7 @@ def test_installModulesDependencies_whenNewArchEnabledAndNewArchAndNoSearchPaths { :dependency_name => "React-debug" }, { :dependency_name => "React-ImageManager" }, { :dependency_name => "React-rendererdebug" }, + { :dependency_name => "DoubleConversion" }, { :dependency_name => "hermes-engine" } ]) end @@ -203,6 +204,7 @@ def test_installModulesDependencies_whenNewArchDisabledAndSearchPathsAndCompiler { :dependency_name => "React-debug" }, { :dependency_name => "React-ImageManager" }, { :dependency_name => "React-rendererdebug" }, + { :dependency_name => "DoubleConversion" }, { :dependency_name => "hermes-engine" } ] ) diff --git a/packages/react-native/scripts/cocoapods/new_architecture.rb b/packages/react-native/scripts/cocoapods/new_architecture.rb index 0d2aa46333d3f1..b3ae25ca988508 100644 --- a/packages/react-native/scripts/cocoapods/new_architecture.rb +++ b/packages/react-native/scripts/cocoapods/new_architecture.rb @@ -128,6 +128,8 @@ def self.install_modules_dependencies(spec, new_arch_enabled, folly_version) spec.dependency "React-debug" spec.dependency "React-ImageManager" spec.dependency "React-rendererdebug" + # This dependency is required for the cases when the pod includes generated sources, specifically Props.cpp. + spec.dependency "DoubleConversion" if ENV["USE_HERMES"] == nil || ENV["USE_HERMES"] == "1" spec.dependency "hermes-engine"