小编Sha*_*yer的帖子

在 flutter 中生成 Podfile 的正确方法是什么?

对我来说,删除后生成 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)

ios swift flutter podfile flutter-dependencies

1
推荐指数
1
解决办法
7579
查看次数

标签 统计

flutter ×1

flutter-dependencies ×1

ios ×1

podfile ×1

swift ×1