【发布时间】: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 集成完全可用,请设置基础 目标
Runner到Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig的配置或包括Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig在 您的构建配置 (Flutter/Debug.xcconfig)。[!] CocoaPods 没有设置你项目的基本配置 因为您的项目已经有一个自定义配置集。为了 CocoaPods 集成完全可用,请设置基础 目标
Runner到Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig的配置或包括Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig在您的构建配置中 (Flutter/Release.xcconfig)。[!] CocoaPods 没有设置你项目的基本配置 因为您的项目已经有一个自定义配置集。为了 CocoaPods 集成完全可用,请设置基础 目标
Runner到Pods/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