diff --git a/scripts/cocoapods/__tests__/flipper-test.rb b/scripts/cocoapods/__tests__/flipper-test.rb index 60961b8050f0a6..feffeb5c49a6f9 100644 --- a/scripts/cocoapods/__tests__/flipper-test.rb +++ b/scripts/cocoapods/__tests__/flipper-test.rb @@ -86,7 +86,7 @@ def test_postInstall_updatesThePodCorrectly reactCore_target = installer.target_with_name("React-Core") reactCore_target.build_configurations.each do |config| if config.name == 'Debug' then - assert_equal(config.build_settings['OTHER_CFLAGS'], "$(inherited) -DFB_SONARKIT_ENABLED=1") + assert_equal(config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'], ['$(inherited)', 'FB_SONARKIT_ENABLED=1']) else assert_true(config.build_settings.empty?) end diff --git a/scripts/cocoapods/flipper.rb b/scripts/cocoapods/flipper.rb index 676a891e12cb05..4e901fb3a0aad2 100644 --- a/scripts/cocoapods/flipper.rb +++ b/scripts/cocoapods/flipper.rb @@ -84,7 +84,7 @@ def flipper_post_install(installer) if target.name == 'React-Core' target.build_configurations.each do |config| if config.name == 'Debug' - config.build_settings['OTHER_CFLAGS'] = "$(inherited) -DFB_SONARKIT_ENABLED=1" + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = ['$(inherited)', 'FB_SONARKIT_ENABLED=1'] end end end