I am building an app by Flutter. I got this error message when doing "pod install
" or "pod install --repo-update
" or "pod update
" and the pod install failed and stopped.
The error message:
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod
FirebaseCoreInternal-library
depends uponGoogleUtilities-library
, 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 setuse_modular_headers!
globally in your Podfile, or specify:modular_headers => true
for particular dependencies.
My Podfile:
platform :ios, '11.0'
...
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
...
You may not need to use use_frameworks!
or use_modular_headers!
because it's getting conflict with use_flipper
You can add the following without using them in ios/Podfile:
platform :ios, '12.4'
...
...
pod 'Firebase', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
#....add any library need headers
Best