ios - 构建时错误 : Receiver type * for for instance message is a forward declaration

标签 ios objective-c iphone

当我运行我的 xcode 项目时,没有任何错误,应用程序运行完美。

但是当我归档它时,它给出了这样的错误

receiver type *** for instance message is a forward declaration

最佳答案

  1. 找到您正在使用 @class *** 的 .h 文件,其中 *** 是错误消息中的接收器类型。
  2. 转到同名的 .m 文件,确保您已导入声明了 *** 类型的 .h 文件或框架。

关于ios - 构建时错误 : Receiver type * for for instance message is a forward declaration,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45646784/

相关文章:

c++ - 作为可选函数指针的类参数不被识别为函数

ios - 将 apns token 与字符串进行比较?

ios - 保存到现有的 Parse.com 对象

objective-c - 从 NIB 加载 View 并使用不遵循约束的 addSubView 显示

iphone - 声明基本类型属性

ios - 'notes'字段在iOS通讯录App中是如何实现的?

ios - 应用程序在发布版本中崩溃但在调试中不崩溃

ios - 将按钮放在 UIImageView 的右上角

iphone - ios 5 原型(prototype)单元格和 VoiceOver 问题

iphone - 如果 UITableview 为空显示图像