早上好,我在更新 Firebase/Analytics 和 Firebase/Core pod 时遇到问题。
我的 Pod 文件:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs'
platform :ios, '10.0'
target 'Unity-iPhone' do
pod 'Firebase/Analytics', '5.15.0'
pod 'Firebase/Core', '5.15.0'
pod 'Firebase/Messaging', '5.1.0'
pod 'GoogleAppMeasurement', '5.3.0'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
end
如果我跑pod install
我得到以下输出
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
In Podfile:
Firebase/Analytics (= 5.15.0)
None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics (= 5.15.0)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --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.
with pod outdated
:
so i run pod update
:
但“Firebase/Analytics”仍保留在 5.1.0 版本上
我哪里错了?我已经多次尝试安装 repo master 以及 gem
正如消息所说,你应该这样做pod repo update
先做然后做pod update
后。希望这可以帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)