`
ytwhw
  • 浏览: 97270 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

关于“ARC forbids explicit message send of release”错误

阅读更多

      如果你在进行release,retain相关操作的时候发现提示了这样一条错误。这是由于在新建工程的时候使用了ARC功能,即点选了“Use Automatic Reference Counting”选项。解决这个问题很简单:

在老板的xcode中,打开“Build Setting”,找到“Objective-C Automatic Reference Counting”项,将它的值设置成“NO”

在较新的Xcode中如4.2,打开“Build Setting”,找到"CLANG_ENABLE_OBJC_ARC" 将它的值设置成NO

这样ARC功能就关闭了。

分享到:
评论

相关推荐

    C++学习与应用 程序设计

    好好看看,很But what, to serve our private ends, Forbids the cheating of our friends? Charles Churchill Instead of this absurd division into sexes they ought to class people as static and dynamic. ...

    串口调试程序

    串口调试程序

    java实现算法

    java实现各种算法,与大家分享

    pja_2.5.zip

    It is also impossible to compute off-screen images when the Java security manager forbids access to any Toolkit or the AWT library. In that case you can although create an instance of ...

    matlab视网膜图像分割代码-Chap_1:第1章

    forbids > 25MB file)发布进行评估,注意训练新模型会删除相应的文件夹) 其他基线代码 计算环境 112GB 内存 Ubuntu 14.04 依赖关系 数据集 杜克大学 Sina Farsiu 教授团队慷慨解囊 结果 用法 训练模型 >> run(main...

Global site tag (gtag.js) - Google Analytics