2016-05-21 17 views
20

我試圖安裝Firebase /數據庫,如Firebase文檔https://firebase.google.com/docs/ios/setup#available_pods,但是當我嘗試過時遇到問題。Firebase pod安裝 - pod'Firebase/Database' - 需要更高的最低部署目標

[!] Unable to satisfy the following requirements: 
  • Firebase/Database滿足Firebase/Database依賴發現要求Podfile

    規格,但他們需要更高的最低部署目標。

需要更高的最低部署目標,我該怎麼辦呢?

感謝

Screenshot

+0

您是否創建了Podfile? –

+0

是的。它的創造! –

回答

23

這是我固定它。

步驟1

安裝常規火力地堡 - pod 'Firebase', '>= 2.5.1'

步驟2

更新 - pod update

*在這一點上會好好的幾分鐘更新。你應該看到這樣的東西。

Update all pods 
Updating local specs repositories 
Analyzing dependencies 
Downloading dependencies 
Installing Firebase 3.2.0 (was 3.2.0) 
Using FirebaseAnalytics (3.2.0) 
Installing FirebaseAuth (3.0.2) 
Using FirebaseDatabase (3.0.1) 
Using FirebaseInstanceID (1.0.6) 
Using GoogleInterchangeUtilities (1.2.1) 
Installing GoogleNetworkingUtilities (1.2.1) 
Using GoogleSymbolUtilities (1.1.1) 
Using GoogleUtilities (1.3.1) 
Generating Pods project 
Integrating client project 
Sending stats 
Pod installation complete! There are 4 dependencies from the Podfile and 10 
total pods installed. 

步驟3

現在你應該有火力地堡3.所以,你可以在你的POD文件中添加像這樣的框架,然後pod update

# Uncomment this line to define a global platform for your project 
platform :ios, '8.0' 
# Uncomment this line if you're using Swift 
use_frameworks! 

target 'xMarket' do 

end 

target 'xMarketTests' do 

end 

target 'xMarketUITests' do 

end 

pod 'Firebase', '>= 2.5.1' 
pod ‘Firebase/Core’ 
pod ‘Firebase/Database’ 
pod ‘Firebase/Auth’ 

祝你好運!

+2

對我來說,第一次安裝火力地堡 莢「火力地堡」 然後做一個「吊艙更新」 然後加入 莢「火力地堡/ XXXXX」 – tanutapi

+0

由於一噸的男人! – iUser

2

在您的Podfile中,將行pod 'Firebase'更改爲pod Firebase/Core並在項目文件夾中運行pod update

使用新的Firebase,不需要第一行。

從遷移指南:

migration

參考:Firebase.google migration guide

-1

跟隨此步驟:

  1. 莢回購刪除主
  2. 莢設置
  3. 吊艙安裝
0

我有同樣的問題。下面

[!] Unable to satisfy the following requirements: 

- `Firebase/AdMob` required by `Podfile` 

Specs satisfying the `Firebase/AdMob` dependency were found, but they required a higher minimum deployment target. 

enter image description here Targets->general->deployment target Changed to 8.0 enter image description here

我的項目部署目標我的錯誤,從iOS 6中開始由於老年人的Xcode version.For新的更新用開發xcode 8我做了deployment target from ios 8它從我的作品。

修復後其工作

Installing Firebase (4.0.2) Installing FirebaseAnalytics (4.0.1) Installing FirebaseCore (4.0.2) Installing FirebaseInstanceID (2.0.0) Installing Google-Mobile-Ads-SDK (7.20.0) Installing GoogleToolboxForMac (2.1.1)

最新的火力地堡將IOS 8

-1

,或者你可以更新Podfile

平臺支持:IOS, '9.0'

運行'pod更新'

wo