gpt4 book ai didi

ios - flutter 中丢失 Cocoapods 文件

转载 作者:行者123 更新时间:2023-11-29 06:02:26 26 4
gpt4 key购买 nike

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

[!] Automatically assigning platform ios with version 8.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to Pods/Target Support
Files/Pods-Runner/Pods-Runner.debug.xcconfig
or include the Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig in your build configuration (Flutter/Debug.xcconfig).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to Pods/Target Support
Files/Pods-Runner/Pods-Runner.release.xcconfig
or include the Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig in your build configuration (Flutter/Release.xcconfig).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to Pods/Target Support
Files/Pods-Runner/Pods-Runner.profile.xcconfig
or include the Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig in your build configuration (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 项目文件夹内。

最佳答案

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

关于ios - flutter 中丢失 Cocoapods 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54494689/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com