如何临时锁定到FirebaseInstanceID 2.0.0

时间:2018-03-26 12:51:38

标签: ios swift firebase firebase-cloud-messaging

我一直面临向IOS 11中运行IOS客户端发送推送通知的问题,在网上冲浪时发现暂时锁定到pod文件中的FirebaseInstanceID 2.0.0。但是,如果我这样做,我收到错误消息如下,

**Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "FirebaseInstanceID":
  In snapshot (Podfile.lock):
    FirebaseInstanceID (= 2.0.10)
  In Podfile:
    FirebaseInstanceID (= 2.0.0)
Specs satisfying the `FirebaseInstanceID (= 2.0.0), FirebaseInstanceID (= 2.0.10)` dependency were found, but they required a higher minimum deployment target.
[!] Automatically assigning platform `ios` with version `10.2` on target `PushNotificationDemo` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.**

FCM Push notifications do not work on iOS 11

是否有其他方法可以在IOS 11中启用推送通知。提前谢谢

我的Pod文件如下,

取消注释下一行以定义项目的全局平台

platform:ios,'9.0'

目标'PushNotificationDemo'做   #如果你没有使用Swift并且不想使用动态框架,请注释下一行   use_frameworks!

PushNotificationDemo的#Pods   pod'Firebase / Core'   pod'Firebase / Messaging'   #pod'FirebaseInstanceID','2.0.0'

目标'PushNotificationDemoTests'做     继承! :search_paths     #Pods用于测试   端

目标'PushNotificationDemoUITests'做     继承! :search_paths     #Pods用于测试   结束 端

0 个答案:

没有答案