ARC forbids Objective-C objects in structs or unions
2017-07-22 16:43
330 查看
解决方法有二种:
1。在出错的地方加入
2。关闭系统ARC。1.点击project 2.点击Build
Setting 3.找到其以下的Objetive-C Automatic Reference Counting 改后面的YES为NO 即可了
转载:http://linuxp.blog.163.com/blog/static/17096277201261311949260/
to
參考:http://stackoverflow.com/questions/8093099/arc-forbids-objective-c-objects-in-structs-or-unions-despite-marking-the-file-f
1。在出错的地方加入
__unsafe_unretained
2。关闭系统ARC。1.点击project 2.点击Build
Setting 3.找到其以下的Objetive-C Automatic Reference Counting 改后面的YES为NO 即可了
转载:http://linuxp.blog.163.com/blog/static/17096277201261311949260/
typedef struct OFBragDelegateStrings { NSString* prepopulatedText; NSString* originalMessage; } OFBragDelegateStrings;
to
typedef struct OFBragDelegateStrings { __unsafe_unretained NSString* prepopulatedText; __unsafe_unretained NSString* originalMessage; } OFBragDelegateStrings;
參考:http://stackoverflow.com/questions/8093099/arc-forbids-objective-c-objects-in-structs-or-unions-despite-marking-the-file-f
相关文章推荐
- ARC forbids Objective-C objects in structs or unions
- ARC forbids Objective-C objects in structs or unions
- ARC forbids Objective-C objects in struct
- ARC forbids Objective-C objects in struct
- ARC forbids Objective-C objects in struct
- ARC forbids Objective-C objects in struct
- iOS 项目运行“ARC forbids Objective-C objects in struct”错误
- iOS 项目运行“ARC forbids Objective-C objects in struct”错误
- ARC forbids Objective-C objects in struct
- ARC forbids Objective-C objects in struct
- ARC forbids Objective-C objects in struct
- iOS-Bug: ARC forbids Objective-C object in struct
- JSONKit does not support Objective-C Automatic Reference Counting(ARC) / ARC forbids Objective-C objects in struct
- ARC forbids explicit message send of 'release' 'release' is unavailable: not available in automatic
- Programming in Objective-C 学习笔记08——文件和ARC
- @synthesize of 'weak' property is only allowed in ARC or GC mode
- How to do run-time (or explicit) linking of C++ plug-in components and objects
- ARC forbids Objective-C objects in struct错误
- synthesis-of-weak-property-only-allowed-in-arc-or-gc-mode ARC属性
- Stack and Heap Objects in Objective-C