`
ytwhw
  • 浏览: 98536 次
  • 性别: 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. ...

    2006年6月17日4级词汇详细解析

    Brazil's constitution forbids the military use of nuclear energy. - **Key Vocabulary**: - **Forbid** (禁止): To not allow or prohibit something. - **Grammar Point**: - **Simple present tense** ...

    串口调试程序

    串口调试程序

    java实现算法

    Java 实现算法 本文档将对 Java 实现的四种算法进行详细的分析和解释,包括冒泡排序、选择排序、插入排序和 Rank 排序。每种算法都将从思想、实现、复杂度分析三个方面进行详细的介绍。 冒泡排序 ...

    2020版高考英语总复习Module5ATripAlongtheThreeGorges练习外研版必修4

    1. **介词短语**:在第1题中,"In view of the shortage of time" 表示“鉴于时间紧迫”,"in view of" 是一个固定搭配,意为“考虑到,鉴于”。 2. **过去分词作定语**:第2题中的 "Lakes, surrounded by/with ...

    山东省新泰市第二中学高中英语《Unit 2 Cloning》 新人教版选修8

    1. 英语单词拼写:题目中提供了几个单词拼写练习,包括"informing", "exactly", "disturb", "morally", "assumption", "merely", "forbids", "procedures", "objected", "retire"。这些都是英语中的常用词汇,对于...

    2017届高考英语一轮复习Unit17Laughter课时练1北师大版选修6.doc

    4. **情态动词**:"can" 表示能力,“forbids”(禁止)是 "forbid" 的过去式,"should" 在此表示建议,"are convinced of" 表示“确信”。 5. **时态与语态**:"is forbidden" 展示了被动语态,"will be put on" ...

    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...

    高考英语重点词组固定搭配大全.docx

    to do sth.:请(叫)某人做某事,如:The boss asked his assistant to send the report. 4. bear sb. to do sth.:忍受某人做某事,如:I can't bear him to speak rudely. 5. beg sb. to do sth.:请求某人做某...

    2020_2021学年高中英语Unit2Cloningperiod2WarmingUp&Reading2作业含解析新人教版选修820210311283

    - forbids:禁止,父亲坚决不允许他演奏最喜欢的琴。 - breakthrough:突破,经过努力工作,他最终在实验中取得了突破。 - exact:准确的,坦白说,我不会再和他联系了。 - obtained:获取,这些信息在网上可以...

Global site tag (gtag.js) - Google Analytics