iphone开发 运行模拟器出现"ARC forbids explicit message send of 'retain' 错误信息
2013-11-23 11:54
465 查看
ARC为自动引用计数,全称"Automatic Reference Counting", 表示你不需要手动保持或者释放变量, 系统会自动进行该项操作。 如果在你的代码中出现该问题,可以通过取消该文件的“自动引用计数”功能:
单击左侧项目导航栏的项目》Build Phases》Compile Sources
选择需要取消该功能的代码文件名,双击并输入"
单击左侧项目导航栏的项目》Build Phases》Compile Sources
选择需要取消该功能的代码文件名,双击并输入"
-fno-objc-arc"即可。
相关文章推荐
- IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
- iOS开发笔记--错误 ARC forbids explicit message send of'release'
- IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
- iOS开发笔记--错误 ARC forbids explicit message send of'release'
- ARC forbids explicit message send of 'retainCount'
- 学习OC 问题1: 关于“ARC forbids explicit message send of release”错误
- OC中的错误arc forbids explicit message send of
- ARC forbids explicit message send of'release 错误
- iOS错误: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 'dealloc'和 'autorelease' is unavailable: not available 解决
- 关于“ARC forbids explicit message send of release”错误
- ARC forbids explicit message send of 'retainCount'
- 关于“ARC forbids explicit message send of release”错误
- 关于“ARC forbids explicit message send of release”错误(转载)
- 关于在xcode上写oc语言有id类型、出现ARC forbids explicit message sendof'dealloc'的问题
- ARC forbids explicit message send of release 错误
- ARC forbids explicit message send of'retain'
- 关于“ARC forbids explicit message send of release”错误