首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带源代码的IOS COCOAPOD

带源代码的IOS COCOAPOD
EN

Stack Overflow用户
提问于 2017-03-16 01:18:25
回答 2查看 87关注 0票数 2

我正在尝试更新我的Xcode项目中的CocoaPods,但是当我尝试运行pod update时,它不工作。

我的播客文件:

代码语言:javascript
复制
source 'https://github.com/MapQuest/podspecs-ios.git'
target 'FireBaseFixed' do
pod 'Firebase', '3.11.0'
pod 'MOCA'
pod 'MapQuestMaps'
end

以及他们的回应

代码语言:javascript
复制
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.

我哪里做错了?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2017-03-16 01:49:16

有什么原因需要Firebase 3.11.0吗?

要获得最新的框架,请使用

代码语言:javascript
复制
pod 'Firebase'

无论如何,你的问题不是版本,而是源代码,你似乎忽略了cocoapods的主要源代码,只包含了MapQuestMaps。

您还需要指定MapQuestMaps的版本,因为它们都是预发布版本,cocoapods会大叫“犯规”。

下面的代码解决了这个问题。

代码语言:javascript
复制
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

如果上述方法不起作用,可以通过运行以下命令来同步您的存储库

代码语言:javascript
复制
pod repo update --verbose

然后运行

代码语言:javascript
复制
pod install
票数 1
EN

Stack Overflow用户

发布于 2017-03-16 01:52:51

下面是您的podfile的工作版本

代码语言:javascript
复制
   # 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'

end
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42816561

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档