IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
来源:互联网 发布:北京一七网络 编辑:程序博客网 时间:2024/05/29 10:16
在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:
阅读全文
0 0
- IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
- IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
- IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
- IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
- ios开发之路十一(ARC forbids explicit message send of 'autorelease'错误)
- ARC forbids explicit message send of 'autorelease'
- iOS学习笔记-错误-ARC forbids explicit message send of autorelease
- iOS错误:ARC forbids explicit message send of'release'
- 解决arc forbids explicit message send of autorelease 报错
- iOS开发笔记--错误 ARC forbids explicit message send of'release'
- iOS开发笔记--错误 ARC forbids explicit message send of'release'
- 开发中ARC forbids explicit message send of 'dealloc'和 'autorelease' is unavailable: not available 解决
- 关于“ARC forbids explicit message send of release”错误
- ARC forbids explicit message send of'release 错误
- Xcode4.5 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”错误
- linux之浅谈crond和crontab
- GreenDao3.0框架使用详解
- Git 入门
- MediaCodec类中queueInputBuffer
- PHP 取出本月,本季度,本年,上月,上季度,上一年的开始和结束日期
- IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
- param和params使用
- 企业级架构有多少年的历史了?
- ORACLE学习第七篇(常用处理函数)
- linux驱动中的工作队列
- android编程之得到应用程序信息
- Linux监控工具介绍系列——vmstat
- MyBatis参数类型Object,且属性中含有List
- mysql 根据分类统计每种类型数量