Firebase Pods无法更新或安装-省道/颤振

Firebase Pods无法更新或安装-省道/颤振,firebase,flutter,dart,google-cloud-firestore,Firebase,Flutter,Dart,Google Cloud Firestore,我想实现firebase,为此我必须更新POD。然而,当我在控制台中键入pod repo update时,它什么也不做。。。它只显示我的“更新规范repo‘trunk’”,然后显示我的提示。如果我在控制台中键入pod install,它会显示: [!] Invalid `Podfile` file: /Users/tlobry/Desktop/Flutter/Generated.xcconfig must exist. If you're running pod install manually

我想实现firebase,为此我必须更新POD。然而,当我在控制台中键入pod repo update时,它什么也不做。。。它只显示我的“更新规范repo‘trunk’”,然后显示我的提示。如果我在控制台中键入pod install,它会显示:

[!] Invalid `Podfile` file: /Users/tlobry/Desktop/Flutter/Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first. # from /Users/tlobry/Desktop/Podfile:16 # ------------------------------------------- # unless File.exist?(generated_xcode_build_settings_path) > raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" # end # -------------------------------------------
这就是我过去尝试解决Pod安装问题的方法:

从ios文件夹中删除podfile.lock

rm Podfile.lock
再次运行pod安装

您也可以尝试将播客文件更改为
平台:ios,“10.0”

仍然不起作用……您尝试过这个解决方案吗?
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end
rm Podfile.lock