gpt4 book ai didi

ios - 集成新的Firebase..错误cocoapods

转载 作者:行者123 更新时间:2023-12-02 11:50:57 25 4
gpt4 key购买 nike

当我将 pod 'Firebase' 放入其中时,我没有获得 Analytics,它显示版本 2.5.1,而当我说 pod 'Firebase/Analytics' 时,它显示版本 2.5.1

Unable to satisfy the following requirements:

- `Firebase/Analytics` required by `Podfile`

None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics`.

You have either:
* out-of-date source repos which you can update with `pod repo update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

当我执行 pod 更新 Firebase 时,它​​会在以下位置卡住几个小时

Performing a deep fetch of the `master` specs repo to improve future performance

我已经尝试了所有更新我所有 cocoapods 版本的操作..我不知道问题是什么..

Podfile 代码

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

target 'NewFirebase' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!


pod 'Firebase’
pod 'Firebase/Analytics’


target 'NewFirebaseTests' do
inherit! :search_paths
# Pods for testing
end

target 'NewFirebaseUITests' do
inherit! :search_paths
# Pods for testing
end

end

谢谢雅利安人

最佳答案

您可能需要通过运行 pod repo update ( Source Link ) 来同步您的 Cocoapods 主存储库。

当我的同步不起作用时,快速重新安装 Cocoapods 修复了同步错误。

关于ios - 集成新的Firebase..错误cocoapods,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37624178/

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