我对 Flutter 完全陌生。
\n我收到了一个几个月前(2020 年 12 月)在 Visual Studio Code 上使用 Flutter 和 Dart 开发的项目,以便将其部署到 App \xc2\xa0Store上。
\n我想指出的是,当时该项目运行得非常好,甚至在 iPhone 上部署了测试版本。
\n我必须确保它可以在本地运行,然后我将其部署到 App\xc2\xa0Store。
\n所以我在我的 Visual Studio Code 中打开了该项目的源代码。我尝试编译它,但没有成功。我不知道当你打开一个项目的源代码时;有一些具体的配置要做。
\n我不确定在打开项目源代码时是否需要进行任何具体配置,但是在浏览论坛后,我意识到该错误一定来自我的 Flutter 的最新版本,并且不是应用程序开发时使用的版本。
\n因此,我按照Flutter iOS build failed an error of pod files: Podfile is out of date和Flutter error: Invalid `Podfile` file: noimplicit conversion of nil into String 中此解决方案的说明进行操作。我\xe2\x80\x99已经搜索了讨论,但我可以\xe2\x80\x99t似乎解决了问题以再次生成我的podfiles。只是现在这个错误是在编译时生成的:
\nLaunching lib/main.dart on iPhone 8 in debug mode...\nRunning pod install...                                           1,674ms\nCocoaPods\' output:\n\xe2\x86\xb3\n      Preparing\n\n …我的 Flutter 应用程序在我的 iOS 设备上无法运行,而在 android 上却运行良好。我遇到了一个错误pod install
这是输出 pod install --verbose
alyzing dependencies
Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
  Using `ARCHS` setting to build architectures of target `Pods-OneSignalNotificationServiceExtension`: (``)
Finding Podfile changes
  A contacts_service
  A firebase_auth
  A flutter_crashlytics
  A local_auth
  A onesignalflutter
  A path_provider
  A permission
  A sqflite
  A url_launcher
  - Flutter
  - OneSignal
  - cloud_functions
  - firebase_core
Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching …亲爱的移动开发人员,谁能帮助我,我在尝试运行时遇到了这个问题pod install
这是我的 podFile,谢谢
# 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 parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  generated_key_values = {}
  skip_line_start_symbols = ["#", "/"]
  File.foreach(file_abs_path) do |line|
    next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
    plugin = line.split(pattern=separator)
    if plugin.length == 2
      podname = plugin[0].strip()
      path = plugin[1].strip() …