下面是控制台的一个片段。
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 的问题。
如果有人能阐明我的问题,我将不胜感激。谢谢。
最佳答案
正如 Jason 在其最新评论中指出的那样,请确保正确输入 Build Settings>Linking>Other Linker Flags 下的 -Objcflags。此值区分大小写,因此请确保 O 和 C 的大写正确:
-ObjC
关于xcode - IMFResponse responseWithWLResponse 无法识别的选择器发送到类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35018402/