我正在用 Flutter 构建一个应用程序。pod install我在执行“ ”或“ pod install --repo-update”或“ ”时收到此错误消息pod update,并且 pod 安装失败并停止。
错误信息:
[!] 以下 Swift Pod 尚无法集成为静态库:
Swift pod
FirebaseCoreInternal-library依赖于GoogleUtilities-library,它不定义模块。要选择那些生成模块映射的目标(在构建为静态库时从 Swift 导入它们是必要的),您可以use_modular_headers!在 Podfile 中进行全局设置,或者指定:modular_headers => true特定的依赖项。
我的 Pod 文件:
platform :ios, '11.0'
...
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
...
Run Code Online (Sandbox Code Playgroud)