相关疑难解决方法(0)

无法在项目“Runner.xcodeproj”中找到名为“Runner”的目标,但确实找到了“dev”和“prod”

我对 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 dateFlutter error: Invalid `Podfile` file: noimplicit conversion of nil into String 中此解决方案的说明进行操作。我\xe2\x80\x99已经搜索了讨论,但我可以\xe2\x80\x99t似乎解决了问题以再次生成我的podfiles。只是现在这个错误是在编译时生成的:

\n
Launching lib/main.dart on iPhone 8 in debug mode...\nRunning pod install...                                           1,674ms\nCocoaPods\' output:\n\xe2\x86\xb3\n      Preparing\n\n …
Run Code Online (Sandbox Code Playgroud)

xcode ios flutter

43
推荐指数
3
解决办法
6万
查看次数

pod 安装时出现 Flutter 错误:CocoaPods 找不到 pod“Firebase/CoreOnly”的兼容版本

我的 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 …
Run Code Online (Sandbox Code Playgroud)

ios cocoapods firebase flutter flutter-dependencies

5
推荐指数
4
解决办法
1万
查看次数

flutter 无效的`Podfile` 文件:没有将 nil 隐式转换为 String

亲爱的移动开发人员,谁能帮助我,我在尝试运行时遇到了这个问题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() …
Run Code Online (Sandbox Code Playgroud)

ios dart flutter

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

标签 统计

flutter ×3

ios ×3

cocoapods ×1

dart ×1

firebase ×1

flutter-dependencies ×1

xcode ×1