[问题记录]Property with 'retain (or strong)' attribute must be of object type
来源:互联网 发布:客户端缓存 js 编辑:程序博客网 时间:2024/04/28 08:21
引用第三方开源库"Reachability.h",编译的时候报错:
Property with 'retain (or strong)' attribute must be of object type
发现错误是在:
@property (nonatomic, strong) dispatch_queue_t reachabilitySerialQueue;
搜索了一番,原来这是因为SDK低于6.0时,dispatch_queue_t ARC没有托管,出现错误
只需将报错这一段修改为:
#if OS_OBJECT_USE_OBJC
@property (nonatomic, strong) dispatch_queue_t reachabilitySerialQueue;
#else
@property (nonatomic, assign) dispatch_queue_t reachabilitySerialQueue;
#endif
即可解决问题!
0 0
- [问题记录]Property with 'retain (or strong)' attribute must be of object type
- Property with 'retain (or strong)' attribute must be of object type
- Property with 'retain(or strong) attribute must be of object type
- 『IOS』Property with 'retain (or strong)' attribute must be of object type
- AFNetworking 2.0 ERROR:Property with 'retain (or strong)' attribute must be of object type [duplicat
- Property with 'retain(or strong)' attribute must be of object type
- Property with 'retain (or strong)' attribute must be of object type 解决方法
- Property with 'retain (or strong)' attribute must be of object type
- XCode中互相包含引起的"property with 'retain(or strong)' attribute must be of object type"错误与解决
- 解决 s.dependency 'AFNetworking' 出现 Property with 'retain (or strong)' attribute must be of object typ
- 项目启动时报错Element type "property" must be followed by either attribute specifications, ">" or "/>"
- Element type “property” must be followed by either attribute specifications, “>” or “/>”
- Attribute "column" must be declared for element type "property"解决办法
- Attribute "column" must be declared for element type "property"解决办法
- Attribute "column" must be declared for element type "property"解决办法
- Field or property 'ROLE_USER' cannot be found on object of type 'org.springframework.security.web.ac
- 【spring-security】 Property or field 'ROLE_USER' cannot be found on object of type 'org.springframewo
- Property or field 'siteUrl' cannot be found on object of type 'xx'
- 观后感脚后跟脚后跟胶合板黑金花
- 跳出手掌心——如何立即触发UIButton边界事件
- Generate Parentheses
- Android适配各种屏幕
- 数据文件备份软件
- [问题记录]Property with 'retain (or strong)' attribute must be of object type
- 海康的视频云-流量压力如何啊
- 第十三周 项目二:形状类族中的纯虚函数
- 自动导出mysql ddl 操作
- 计划将旅客们恐怕两面派
- 百度8秒君:文件存网盘真的靠谱么?
- [oj维护日记]HUSTOJ添加已支持的语言
- 在Mac中安装opencv-python
- findbugs与sonar应用比较