2016-05-23 58 views
0

我試圖用的CocoaPods更新火力地堡到3.0.2火力地堡Podfile - 的CocoaPods無法更新

在我的第一步,我註釋掉莢「火力地堡」

Podfile

然後我說回來,跑吊艙安裝

Error Message

然後它安裝了Firebase 2.5.1,所以我跑了pod更新以獲得Firebase 3.0.2作爲堆棧溢出的其他問題暗示。 但我總是得到這樣的結果:

enter image description here

所以我的問題是我爲了得到更新呢? 在我的Podfile中,我也取消了use_frameworks的註釋!但它沒有改變任何東西。

我改變了Podfile到:

enter image description here

,但仍得到一個錯誤信息

enter image description here

+0

不要去更新波德版本,因爲文件是不完美的 –

+0

文檔應該如何? – Dominik

+0

他們沒有更新文件。所有文件屬於舊版本 –

回答

3

據火力地堡文件,爲3.x版本的火力地堡吊艙具有獨立每個API的子類。

要使用的CocoaPods包括火力地堡,你應該寫以下到您的Podfile:

pod 'Firebase/Core' 
pod 'Firebase/Database' 

編輯:

我沒有看到你沒有實現source 'https://github.com/CocoaPods/Specs.git'到您的Podfile,由在你的Podfile的頂部添加該行應該起作用。 我測試了這個Podfile和它完美的作品:

source 'https://github.com/CocoaPods/Specs.git' 

platform :ios, '9.0' 
use_frameworks! 

target 'MyTarget' do 
    pod 'Firebase/Core' 
    pod 'Firebase/Database' 
end 

如果這不是爲你工作,更新到最新的CocoaPods,然後再試一次。

Upgrading from Firebase.com

CocoaPods

+1

我已經嘗試過,但總是得到:[!]無法滿足以下要求: - 'Podfile'需要'Firebase/Core' - 'Podfile'需要的Firebase/Core' – Dominik

+0

您的回答工作。謝謝! – Dominik

-1

使用莢搜索火力

你可以看到:

- >火力地堡(2.5.1) 的火力地堡官方的iOS客戶端庫。 pod'Firebase','〜> 2.5.1' - 主頁:https://www.firebase.com/ - 來源:https://cdn.firebase.com/ObjC/Firebase.framework-2.5.1.zip - 版本:2.5.1,2.5.0,2.4.3,2.4.2,2.4.1.1,2.4.1 ,2.4.0,2.3.3,2.3.2, ,2.3.1,2.3.0,2.2.2,2.2.1,2.2.0,2.1.2,2.1.1,2.1.0,2.0.3, 2.0.2,2.0.1, 2.0.0,1.2.3,1.2.2,1.2.1,1.2.0,1.1.12,1.1.11,1.1.10,1.1.9,1.1。7, 1.1.6,1.1.5,1.1.4,1.1.3,1.1.2,1.1.1,1.1.0,1.0.9,1.0.7,1.0.5,1.0.0 [master repo ]

所以使用: 莢 '火力地堡', '〜> 2.5.1'

+0

這不會安裝Firebase 3.x,這是OP請求的內容。 – Laffen

0

我刪除podfile.lock。

然後安裝pod。

這對我的作品