diff --git a/packages/react-native/scripts/cocoapods/__tests__/flipper-test.rb b/packages/react-native/scripts/cocoapods/__tests__/flipper-test.rb index d30b5bc7d98..2c0659ecc4c 100644 --- a/packages/react-native/scripts/cocoapods/__tests__/flipper-test.rb +++ b/packages/react-native/scripts/cocoapods/__tests__/flipper-test.rb @@ -82,7 +82,7 @@ class FlipperTests < Test::Unit::TestCase assert_equal(config.build_settings['SWIFT_VERSION'], '4.1') end - reactCore_target = installer.target_with_name("React-Core") + reactCore_target = installer.target_with_name("React-RCTAppDelegate") reactCore_target.build_configurations.each do |config| if config.name == 'Debug' || config.name == 'CustomConfig' then assert_equal(config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'], ['$(inherited)', 'FB_SONARKIT_ENABLED=1']) @@ -144,6 +144,14 @@ class FlipperTests < Test::Unit::TestCase BuildConfigurationMock.new("Release", is_debug: false), BuildConfigurationMock.new("CustomConfig", is_debug: true), ] + ), + TargetMock.new( + "React-RCTAppDelegate", + [ + BuildConfigurationMock.new("Debug", is_debug: true), + BuildConfigurationMock.new("Release", is_debug: false), + BuildConfigurationMock.new("CustomConfig", is_debug: true), + ] ) ] ) diff --git a/packages/react-native/scripts/cocoapods/flipper.rb b/packages/react-native/scripts/cocoapods/flipper.rb index 2465a5be891..73371c1df60 100644 --- a/packages/react-native/scripts/cocoapods/flipper.rb +++ b/packages/react-native/scripts/cocoapods/flipper.rb @@ -77,8 +77,8 @@ def flipper_post_install(installer) end end - # Enable flipper for React-Core Debug configuration - if target.name == 'React-Core' + # Enable flipper for React-RCTAppDelegate Debug configuration + if target.name == 'React-RCTAppDelegate' target.build_configurations.each do |config| if config.debug? config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = ['$(inherited)', 'FB_SONARKIT_ENABLED=1']