我正在尝试更新我的Xcode项目中的CocoaPods,但是当我尝试运行pod update时,它不工作。
我的播客文件:
source 'https://github.com/MapQuest/podspecs-ios.git'
target 'FireBaseFixed' do
pod 'Firebase', '3.11.0'
pod 'MOCA'
pod 'MapQuestMaps'
end以及他们的回应
daortiz:FireBaseFixed dortiz$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
[!] Unable to find a specification for `Firebase (= 3.11.0)`
[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.我哪里做错了?
发布于 2017-03-16 01:49:16
有什么原因需要Firebase 3.11.0吗?
要获得最新的框架,请使用
pod 'Firebase'无论如何,你的问题不是版本,而是源代码,你似乎忽略了cocoapods的主要源代码,只包含了MapQuestMaps。
您还需要指定MapQuestMaps的版本,因为它们都是预发布版本,cocoapods会大叫“犯规”。
下面的代码解决了这个问题。
source 'https://github.com/MapQuest/podspecs-ios.git'
source 'https://github.com/CocoaPods/Specs.git'
target 'FireBaseFixed' do
pod 'Firebase', '3.11.0'
pod 'MOCA'
pod 'MapQuestMaps', '3.4.1-1.1'
end如果上述方法不起作用,可以通过运行以下命令来同步您的存储库
pod repo update --verbose然后运行
pod install发布于 2017-03-16 01:52:51
下面是您的podfile的工作版本
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://github.com/MapQuest/podspecs-ios.git'
source 'https://github.com/CocoaPods/Specs.git'
target 'FireBaseFixed' do
pod 'Firebase'
pod 'MOCA'
pod 'MapQuestMaps’, '~>3.4.1-1.1'
endhttps://stackoverflow.com/questions/42816561
复制相似问题