xcode - IMFResponse responseWithWLResponse 无法识别的选择器发送到类

标签 xcode swift ibm-cloud ios9.2 ibm-mobile-services

Similar to this problem .

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

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 的问题。

如果有人能阐明我的问题,我将不胜感激。谢谢。

最佳答案

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

-ObjC

关于xcode - IMFResponse responseWithWLResponse 无法识别的选择器发送到类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35018402/

相关文章:

swift - 点击表格 View 单元格后删除 uiview (swift)

ios - 在 SIMULATOR 和 DEVICE 中执行时无法识别字体

swift - 无法在 Swift X.0.2 中导入使用 swift X.1 编译的模块

ios - 您必须指定 |clientID|对于 |GIDSignIn|尝试使用 Google 登录时出错

ibm-cloud - 如何删除 IBM Cloud 上的 Watson Assistant 服务中的上下文变量

mysql - Bluemix 云平台 : How to pass a value in node. js MySQL

ios - 通过 xcodebuild 传递编译器标志

ios - 使用选择器动态更改 UICollectionCell 的标签

ios - 展开字典项值

lua - NodeMCU 无法使用 TLS 连接到 Bluemix