<分区>
我的应用程序可以与 Firebase RTDB 一起使用,但想尝试使用 Firestore,所以我按照说明安装了“firebase_firestore” ' 插件。
当我现在运行我的应用程序时,出现以下错误:
Resolving dependencies of `Podfile`
[!] Unable to satisfy the following requirements:
- `Firebase/Firestore` required by `firebase_firestore (0.0.1)`
Specs satisfying the `Firebase/Firestore` dependency were found, but they required a higher minimum deployment target.
我已经尝试在我的 Podfile 中指定 platform :ios, '9.0'
和 10.0
但这没有任何区别。所有其他 pod 安装正常。
这是整个 Cocoapods 运行日志:https://pastebin.com/raw/SBz8Bqgf
我的 Podfile 看起来像这样(标准 Flutter Podfile):
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
if ENV['FLUTTER_FRAMEWORK_DIR'] == nil
abort('Please set FLUTTER_FRAMEWORK_DIR to the directory containing Flutter.framework')
end
target 'Runner' do
# Pods for Runner
# Flutter Pods
pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']
if File.exists? '../.flutter-plugins'
flutter_root = File.expand_path('..')
File.foreach('../.flutter-plugins') { |line|
plugin = line.split(pattern='=')
if plugin.length == 2
name = plugin[0].strip()
path = plugin[1].strip()
resolved_path = File.expand_path("#{path}/ios", flutter_root)
pod name, :path => resolved_path
else
puts "Invalid plugin specification: #{line}"
end
}
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
这是 Podfile.lock 的链接,也许这更有趣。我看到它还没有用 Firestore 更新,大概是因为运行失败:https://pastebin.com/raw/hj2jHE76