如何禁用 Xcode4.2 自动引用计数 [英] How to disable Xcode4.2 Automatic Reference Counting

查看:22
本文介绍了如何禁用 Xcode4.2 自动引用计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我已经将我的 xCode 更新到 4.2 版本,并且我想禁用 ARC,我也用谷歌搜索.但无法解决我的问题.根据搜索结果,在目标设置中,找不到‘Objective-C自动引用计数’项,所以没机会设置为NO.我一一找到,也用搜索栏.

Today, I have update my xCode to 4.2 version, And I want to disable the ARC, I also search with the google. but can't fix my problem. According the search results, In the target setting, I can't find the 'Objective-C Automatic reference counting' item, So have no chance to set it to NO. I find the item one by one, and also use the search field.

并且知道最新的 Xcode4.2,如何为项目禁用 ARC,而不是针对特定文件.

And one know the newest Xcode4.2 ,how to disable the ARC for the project, not for the specific file.

非常感谢.

推荐答案

  • 在左侧的管理器中单击您的项目.
  • 选择你的目标,在下一列中结束.
  • 选择顶部的构建设置选项卡.
  • 向下滚动到Objective-C 自动引用计数"(它可能在 User-Defined 设置组下列为CLANG_ENABLE_OBJC_ARC"),
  • 并将其设置为 NO.
    • Click on you project, in the left hand organizer.
    • Select your target, in the next column over.
    • Select the Build Settings tab at the top.
    • Scroll down to "Objective-C Automatic Reference Counting" (it may be listed as "CLANG_ENABLE_OBJC_ARC" under the User-Defined settings group),
    • and set it to NO.
    • 这是在 Xcode 4.2 (Build 4D199) 上.

      This is on Xcode 4.2 (Build 4D199).

      这篇关于如何禁用 Xcode4.2 自动引用计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆