安装 pod 文件时出现 Firebase Messaging 错误
Firebase Messaging error while installing pod file
我正在尝试安装 Firebase 的 pod 以进行消息传递,但我在终端中收到此错误....
"Specs satisfying the Firebase/Messaging
dependency were found, but they required a higher minimum deployment target."
这是我的播客文件
"# 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
这应该是您的播客文件。试试吧。
我做的比那个人告诉我们的多或少
但我的步骤有点不同:
1) 在终端上:
转到您的项目文件夹:
1.1) CD Desktop/YourApp
1.2) YOURMAC:YourApp 费尔南达 $ sudo pod init
2) 将文件 Podfile 更改为:
` # 取消注释这一行来为你的项目定义一个全球平台
平台:ios, '8.0'
目标'YourApp'做
# 如果您不使用 Swift 并且不想使用动态框架
,请注释掉这一行
use_frameworks!
# Pods 为 YourApp
pod 'Firebase'
结束
`
3) 在终端上:pod install
4) 现在,再次将文件 Podfile 更改为:
`# 取消注释这一行来为你的项目定义一个全球平台
平台:ios, '8.0'
目标'YourApp'做
# 如果您不使用 Swift 并且不想使用动态框架
,请注释掉这一行
use_frameworks!
# Pods 为 YourApp
吊舱 'Firebase'
pod 'Firebase/Messaging'
结束
`
5) 在终端上:pod update
对不起我的英语,
好看!
我正在尝试安装 Firebase 的 pod 以进行消息传递,但我在终端中收到此错误....
"Specs satisfying the Firebase/Messaging
dependency were found, but they required a higher minimum deployment target."
这是我的播客文件
"# 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
这应该是您的播客文件。试试吧。
我做的比那个人告诉我们的多或少 但我的步骤有点不同:
1) 在终端上:
转到您的项目文件夹:
1.1) CD Desktop/YourApp
1.2) YOURMAC:YourApp 费尔南达 $ sudo pod init
2) 将文件 Podfile 更改为:
` # 取消注释这一行来为你的项目定义一个全球平台
平台:ios, '8.0'
目标'YourApp'做
# 如果您不使用 Swift 并且不想使用动态框架
,请注释掉这一行
use_frameworks!
# Pods 为 YourApp
pod 'Firebase'
结束
`
3) 在终端上:pod install
4) 现在,再次将文件 Podfile 更改为:
`# 取消注释这一行来为你的项目定义一个全球平台
平台:ios, '8.0'
目标'YourApp'做
# 如果您不使用 Swift 并且不想使用动态框架
,请注释掉这一行
use_frameworks!
# Pods 为 YourApp
吊舱 'Firebase'
pod 'Firebase/Messaging'
结束
`
5) 在终端上:pod update
对不起我的英语,
好看!