1

类似这个问题

下面是控制台的一个片段。

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 无法重现问题。

如果有人能对我的问题有所了解,将不胜感激。谢谢你。

4

1 回答 1

0

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

-对象

于 2016-01-27T15:33:22.190 回答