对我来说,删除后生成 pod 文件有两种方法\n第一种是运行 flutter pub get ,然后编辑后会生成如下形式的 pod 文件
\n# Uncomment this line to define a global platform for your project\n platform :ios, \'10.0\'\npod \'Firebase/Analytics\' #ATTENTION PLEASE SHOULD I ADD THESE PODS HERE?\npod \'Firebase/Auth\'\npod \'Firebase/Firestore\'\npod \'Firebase/Database\'\npod \'Firebase/Messaging\'\n\n# CocoaPods analytics sends network stats synchronously affecting flutter build latency.\nENV[\'COCOAPODS_DISABLE_STATS\'] = \'true\'\n\nproject \'Runner\', {\n \'Debug\' => :debug,\n \'Profile\' => :release,\n \'Release\' => :release,\n}\n\ndef flutter_root\n generated_xcode_build_settings_path = File.expand_path(File.join(\'..\', \'Flutter\', \'Generated.xcconfig\'), __FILE__)\n unless File.exist?(generated_xcode_build_settings_path)\n raise "#{generated_xcode_build_settings_path} must exist. If you\'re running pod install manually, …Run Code Online (Sandbox Code Playgroud)