ARC forbids explicit message send of 'autorelease'
来源:互联网 发布:淘宝卖家 信用卡 编辑:程序博客网 时间:2024/05/21 11:06
在ios中经常会遇到:ARC forbids explicit message send of 'autorelease' 或“ARC forbids explicit message send of release”这样的错误。原因可能是项目使用了arc机制而有些文件禁止使用而报错,
解决方法:
1.禁用在Xcode中的特定文件的ARC
点击项目名,在中间一栏选择targets,然后选择build phases选项。
展开Compile Sources,找到你报错的文件名,然后双击添加-fno-objc-arc:如下图:
方法二:把整个项目改成非arc机制的:
在build Settings中:把Objective-C Automatic Reference Co....设为NO:
转载请注明:
新浪微博:http://weibo.com/u/3202802157
解决方法:
1.禁用在Xcode中的特定文件的ARC
点击项目名,在中间一栏选择targets,然后选择build phases选项。
展开Compile Sources,找到你报错的文件名,然后双击添加-fno-objc-arc:如下图:
方法二:把整个项目改成非arc机制的:
在build Settings中:把Objective-C Automatic Reference Co....设为NO:
转载请注明:
新浪微博:http://weibo.com/u/3202802157
0 0
- ARC forbids explicit message send of 'autorelease'
- 解决arc forbids explicit message send of autorelease 报错
- ARC forbids explicit message send of'release'
- ARC forbids explicit message send of'release'
- ARC forbids explicit message send of 'release
- ARC forbids explicit message send of'release'
- ARC forbids explicit message send of'retain'
- ARC forbids explicit message send of'release'
- ARC forbids explicit message send of'release'
- ARC forbids explicit message send of'release'
- ARC forbids explicit message send of'release'
- ARC forbids explicit message send of release
- ARC forbids explicit message send of "release"
- ARC forbids explicit message send of release
- ARC forbids explicit message send of 'autolease'
- ARC forbids explicit message send of 'retainCount'
- ARC forbids explicit message send of'retain'
- ARC forbids explicit message send of 'retainCount'
- Hibernate查询优化 HQL提高效率
- mahout推荐引擎源码分析
- 【转】请尊重测试:测试从业五年有感
- C++中 #include与直接写class加类名有何区别
- Oracle数据库中去掉重复数据(只限小数据)
- ARC forbids explicit message send of 'autorelease'
- 【每日一C之二十】 悬空指针
- d3_pack&bubble
- 测试人员如何多涨薪
- python学习笔记
- 滚动条的fadingEdge属性
- OC内存管理总结二:
- hdu 2063 过山车 + hdu 2119 Matrix (二分图的最大匹配边和最小覆盖点)
- C语言中log函数怎么使用啊