【发布时间】:2016-01-26 16:09:00
【问题描述】:
下面是来自控制台的 sn-p。
Timestamp App Name[315:36110] [INFO] [IMFPushClient] -[IMFPushClient registerDeviceToken:completionHandler:] in IMFPushClient.m:70 :: Verifying previous device registration.
IMFAuthorizationManager.m:453 :: There is no cached authorization header, use obtainAuthorizationHeaderWithCompletionHandler to get the header
Timestamp App Name[315:36110] +[IMFResponse responseWithWLResponse:]: unrecognized selector sent to class 0x100101c30
- 没有使用 cocoapod 安装 IMFCore 框架。直接参考框架。
- 在链接器中添加了 -Objc 标志->项目和目标的其他链接器标志。
- 在 iPhone 6+ iOS 版本 9.2.1 上调试时检测到问题。
- Xcode iPhone 6+ 模拟器 iOS 9.2 版无法重现问题。
如果有人能对我的问题有所了解,将不胜感激。谢谢。
【问题讨论】:
-
您遇到的具体问题是什么?
-
你能在调试iPhone 6+ iOS 9.2.1版本时写下错误/问题吗?
-
需要注意的一点是,您不能在模拟器上进行推送通知注册,因此它在那里无法重现是有道理的。请提供您用于注册的代码
-
@Jaalger 感谢您指出这一点。我将尝试以编程方式触发 IMFPushClient.sharedInstance().registerDeviceToken 函数,看看是否可以在模拟器中复制问题。
-
@MihribanMinaz 我正在尝试注册我的应用程序以使用 Bluemix 的 IMFPush 框架从 APNS 接收远程通知。 IMFPushClient.sharedInstance().registerDeviceToken 在 didRegisterForRemoteNotificationsWithDeviceToken 委托函数中被调用。即使设置了 -Objc 链接器标志,我也会遇到无法识别的选择器错误。
标签: xcode swift ibm-cloud ios9.2 ibm-mobile-services