我正在尝试使用 Firebase In-App Messaging,只是在我的 Podfile 中添加了一些行。
但是当我运行时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 install --repo-update
了,但得到了同样的错误。
如何安装吊舱?
我的 cocoapod 是 1.5.3,Xcode 是 10.1。
这是我的 Podfile:
# 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
结果pod outdated
:
- 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)