繁体   English   中英

安装pod文件时出现Firebase Messaging错误

[英]Firebase Messaging error while installing pod file

我正在尝试安装Firebase的pod用于消息传递,我在终端中收到了这个错误....“找到了满足Firebase/Messaging依赖关系的规范,但它们需要更高的最低部署目标。”

这就是我在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
"

我该如何解决这个问题?

# 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

这应该是你的podfile。 试试吧。

我或多或少地比那个人告诉我们但我的步骤有点不同:

1)在终端上:
转到您的项目文件夹:
1.1)cd Desktop / YourApp
1.2)YOURMAC:YourApp Fernanda $ sudo pod init

2)将您的文件Podfile更改为:

`#取消注释这一行,为你的项目平台定义一个全球平台:ios,'8.0'

目标'你的'做'
#如果您不使用Swift并且不想使用动态框架,请注释此行
use_frameworks!

#OnApp的Pods
pod'Firebase'

结束
`

3)在终端上:pod安装

4)现在,再次将文件Podfile更改为:
`#取消注释这一行,为你的项目平台定义一个全球平台:ios,'8.0'

目标'你的'做'
#如果您不使用Swift并且不想使用动态框架,请注释此行
use_frameworks!

#OnApp的Pods
pod'Firebase'
pod'Firebase / Messaging'

结束
`

5)在终端上:pod更新
对不起我的英语,
好看!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM