【问题标题】:Cocoapods files are missing in flutter颤振中缺少Cocoapods文件
【发布时间】:2019-02-02 15:51:44
【问题描述】:

我不是 ios 开发人员,我正在尝试将 Firebase 添加到我的 Flutter 项目中。我遵循添加 ios 项目的 firebase 指南。我首先在 Xcode 中将 GoogleService-Info.plist 移动到 Runner/Runner 中。此后我执行$pod init 并将pod 'Firebase Core' 添加到Podfile 中。如设置指南中所述,此后我执行了pod install。此命令已显示以下错误消息:

[!] 自动分配平台ios 和版本8.0 目标Runner,因为没有指定平台。请指定一个 Podfile 中此目标的平台。看 https://guides.cocoapods.org/syntax/podfile.html#platform.

[!] CocoaPods 没有设置你项目的基本配置 因为您的项目已经有一个自定义配置集。为了 CocoaPods 集成完全可用,请设置基础 目标RunnerPods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig 的配置或包括 Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig 在 您的构建配置 (Flutter/Debug.xcconfig)。

[!] CocoaPods 没有设置你项目的基本配置 因为您的项目已经有一个自定义配置集。为了 CocoaPods 集成完全可用,请设置基础 目标RunnerPods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig 的配置或包括 Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig 在您的构建配置中 (Flutter/Release.xcconfig)。

[!] CocoaPods 没有设置你项目的基本配置 因为您的项目已经有一个自定义配置集。为了 CocoaPods 集成完全可用,请设置基础 目标RunnerPods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig 的配置或包括 Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig 在您的构建配置中 (Flutter/Release.xcconfig)。

当我现在尝试运行我的应用程序时,debug concol 会输出以下错误:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

似乎有些文件丢失了,即使它们位于 ios 项目文件夹中。

【问题讨论】:

  • 你解决了吗?

标签: ios xcode firebase flutter cocoapods


【解决方案1】:

经过一番研究,我发现没有必要运行这些pod cmets。只需将 google-services 文件移动到 iOS 项目中即可。

【讨论】:

    【解决方案2】:

    遵循三个简单的步骤。 颤振终端, 1. cd ios 2. 吊舱初始化 3. 吊舱安装

    在比之后,颤抖着跑。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-21
      • 1970-01-01
      • 1970-01-01
      • 2020-11-29
      • 2019-02-27
      • 1970-01-01
      • 1970-01-01
      • 2021-12-16
      相关资源
      最近更新 更多