【问题标题】:IMFResponse responseWithWLResponse unrecognized selector sent to classIMFResponse responseWithWLResponse 无法识别的选择器发送到类
【发布时间】:2016-01-26 16:09:00
【问题描述】:

Similar to this problem.

下面是来自控制台的 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
  1. 没有使用 cocoapod 安装 IMFCore 框架。直接参考框架。
  2. 在链接器中添加了 -Objc 标志->项目和目标的其他链接器标志。
  3. 在 iPhone 6+ iOS 版本 9.2.1 上调试时检测到问题。
  4. 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


【解决方案1】:

正如 Jason 在他的最新评论中指出的那样,请确保正确输入了 Build Settings>Linking>Other Linker Flags 下的 -ObjC 标志。此值区分大小写,因此请确保 O 和 C 大写正确:

-ObjC

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-03-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-03
    • 1970-01-01
    相关资源
    最近更新 更多