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

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

问题描述

今天,我已将我的xCode更新为4.2版本,而我想禁用ARC,我也会使用google进行搜索。但无法解决我的问题。根据搜索结果,在目标设置中,我找不到'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自动引用计数(它可能在下列为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天全站免登陆