ARC forbids Objective-C objects in structs or unions
in or Objective Objects Arc
2023-09-11 14:14:09 时间
解决方法有二种:
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
相关文章
- Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
- VUE - vue.runtime.esm.js?6e6d:619 [Vue warn]: Do not use built-in or reserved HTML elements as component i
- Cookie存储中文报错:java.lang.IllegalArgumentException: Control character in cookie value or attribute.(转)
- [Javascript] Hide Properties from Showing Up in "for ... in" Loops in JavaScript
- [Node.js] Using npm link to use node modules that are "in progress"
- tesseract is not installed or it's not in your PATH
- [Typescript] Write clean Type 1 - Generic slots, using built-in types as much as possible
- [React] Setup an API Proxy in Create React App
- [Javascript] Hide Properties from Showing Up in "for ... in" Loops in JavaScript
- [PWA] Show an Error when a POST or DELETE Fails in an Offline PWA
- python print 打印的数据包含中文,打印报错UnicodeDecodeError: 'gbk' codec can't decode bytes in position 459-460: illegal multibyte sequence解决办法
- 【收藏】goland报错:报错package xxx is not in GOROOT or GOPATH 或者 cannot find package “xxx“ in any of
- Hbase2.1.0-CDH6.3.2 Region in Transition (永久RIT) 异常解决
- [FAQ] Member "address" not found or not visible after argument-dependent lookup in address payable.
- 【Codeforces 598D】Igor In the Museum
- click Edit button in Opportunity - why curr is displayed wrongly
- ESLint: Expected space or tab after ‘//‘ in comment.(spaced-comment)
- 成功解决Future Warning: The sklearn.neighbors.dist_metrics module is deprecated in version 0.22 and wil
- Matlab:成功解决In an assignment A(I)=B,the number of elements in B and I must be the same
- 成功解决ValueError: min_samples_split must be an integer greater than 1 or a float in (0.0, 1.0]; got th
- 已解决TypeError: ‘in <string>‘ requires string as left operand, not builtin_function_or_method
- pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path
- Spark SQL 源代码分析之 In-Memory Columnar Storage 之 in-memory query
- java对mongodb的and, in, or 经常使用操作
- PostgreSQL的学习心得和知识总结(七十七)|详解PostgreSQL数据库 空闲会话超时 实现原理说明(in a transaction or not)
- 解决Mysql报错:This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its de ————————————