Xcode Can';t安装Firebase/InAppMessagingDisplay:他们需要更高的最小部署目标
我正在尝试使用Firebase应用程序内消息传递,只是在我的播客文件中添加了一些行。Xcode Can';t安装Firebase/InAppMessagingDisplay:他们需要更高的最小部署目标,xcode,firebase,cocoapods,firebase-in-app-messaging,Xcode,Firebase,Cocoapods,Firebase In App Messaging,我正在尝试使用Firebase应用程序内消息传递,只是在我的播客文件中添加了一些行。 但当我运行pod install时,我收到一条错误消息,如下所示: [!] CocoaPods could not find compatible versions for pod "Firebase/InAppMessagingDisplay": In Podfile: Firebase/InAppMessagingDisplay Specs satisfying the `Firebase/I
但当我运行
pod install
时,我收到一条错误消息,如下所示:
[!] CocoaPods could not find compatible versions for pod "Firebase/InAppMessagingDisplay":
In Podfile:
Firebase/InAppMessagingDisplay
Specs satisfying the `Firebase/InAppMessagingDisplay` dependency were found, but they required a higher minimum deployment target.
我还尝试了pod安装--repo更新
,但得到了相同的错误。如何安装吊舱 我的cocoapod是1.5.3,Xcode是10.1。
这是我的播客文件:
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
target 'iOSTestApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for iOSTestApp
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/DynamicLinks'
pod 'Firebase'
pod 'Firebase/InAppMessagingDisplay'
target 'iOSTestAppTests' do
inherit! :search_paths
# Pods for testing
end
end
以及的结果
:
- Firebase 4.4.0 -> (unused) (latest version 5.12.0)
- FirebaseAnalytics 4.0.4 -> 5.3.0 (latest version 5.3.0)
- FirebaseCore 4.0.9 -> 5.1.7 (latest version 5.1.7)
- FirebaseDynamicLinks 2.1.0 -> 3.1.1 (latest version 3.1.1)
- FirebaseInstanceID 2.0.5 -> 3.3.0 (latest version 3.3.0)
- FirebaseMessaging 2.0.5 -> 3.2.1 (latest version 3.2.1)
- GoogleToolboxForMac 2.1.3 -> (unused) (latest version 2.1.4)
- nanopb 0.3.8 -> 0.3.901 (latest version 0.3.901)
- Protobuf 3.4.0 -> 3.6.1 (latest version 3.6.1)
InAppMessaging
需要Firebase 5.x。执行pod更新
,以便现有的pod将更新到其当前安装的版本。这就是我所做的
pod 'Firebase'
pod 'Firebase/Core'
pod 'FirebaseMessaging' #, '~> 2.0.5'
pod 'Firebase/DynamicLinks'
pod 'Firebase/InAppMessagingDisplay'
保存podfile
希望有帮助。在开始之前,您需要在您的环境中设置一些东西:
- 启用Firebase的应用程序:如果尚未启用,请添加
- Xcode 9.2或更高版本:Firebase应用内消息需要相对较新版本的Xcode才能运行。您可以在以下位置找到最新的Xcode版本:
- CocoaPods 1.4.0或更高版本:Firebase应用内消息使用CocoaPods管理对iOS的依赖关系。您可以从中安装它
一旦在终端中执行pod install命令,它将开始安装 你有没有找到解决办法?我有一个几乎相同的问题。