2016-07-01 63 views
0

我試圖安裝Firebase的消息傳送程序,並在終端中出現此錯誤.... 「找到滿足Firebase/Messaging依賴項的規範,但它們需要更高的最低部署目標。安裝pod文件時發生Firebase消息傳送錯誤

這是我在我的podfile

"# 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 'PZPlayer' do 

pod ‘Firebase’ 
pod ‘Firebase/Messaging’ 
end 
" 

我怎樣才能解決這個問題呢?

回答

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

target 'PZPlayer' do 

pod ‘Firebase’ 
pod ‘Firebase/Messaging’ 
end 

這應該是你的pod文件。嘗試一下。

+0

它的工作感謝 – BOB

+0

隨時隨地! :)快樂的編碼! – Dershowitz123

0

我確實比男人或多或少告訴我們 但我的腳步都有些不同,在終端

1):
去你的項目文件夾:
1.1)CD桌面/ YourApp
1.2)YOURMAC:YourApp費爾南達$ sudo的吊艙初始化

2)改變你的文件Podfile到:

`#Uncommen牛逼此行定義一個全球平臺,爲您的項目 平臺:IOS,「8.0」

目標「YourApp」如果你不使用雨燕不想使用動態做
#評論這條線框架
use_frameworks!

對終端YourApp
莢 '火力地堡'


`

3)#豆莢:莢安裝

4)現在,再次更改文件Podfile到:
`#取消註釋此行爲您的項目定義全球平臺 平臺:ios,'8.0'

目標「YourApp」如果你不使用雨燕不想使用動態框架
use_frameworks做
#註釋此行!

#吊艙YourApp
莢 '火力地堡'
莢 '火力地堡/消息'


`

5)終端:莢更新
對不起我對我的英文,
好看!