diff --git a/packages/react-native/scripts/cocoapods/utils.rb b/packages/react-native/scripts/cocoapods/utils.rb index ace3848aa849d7..dcb15c397d0196 100644 --- a/packages/react-native/scripts/cocoapods/utils.rb +++ b/packages/react-native/scripts/cocoapods/utils.rb @@ -541,7 +541,8 @@ def self.update_ats_in_plist(plistPaths, parent) "NSAppTransportSecurity" => ats_configs } else - plist["NSAppTransportSecurity"] = ats_configs + plist["NSAppTransportSecurity"] ||= {} + plist["NSAppTransportSecurity"] = plist["NSAppTransportSecurity"].merge(ats_configs) end Xcodeproj::Plist.write_to_path(plist, fullPlistPath) end