While upgrading react-native from version 0.59.9 to 0.71.2, I am facing multiple build errors, no surprise that there is drastic changes happened from 0.59.9 to 0.71.2.
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod
FirebaseCoreInternal depends upon
GoogleUtilities, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set
use_modular_headers! globally in your Podfile, or specify
:modular_headers => true for particular dependencies.
Solution (fix) error for FirebaseCoreInternal depends on GoogleUtilities
Add below lines in your pod file
platform :ios, min_ios_version_supported
pod ‘Firebase’, :modular_headers => true
pod ‘FirebaseCoreInternal’, :modular_headers => true
pod ‘GoogleUtilities’, :modular_headers => true
Reference- thanks to stackoverflow post