本文介绍了如何在Xcode 5中为单个文件禁用ARC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近下载了Xcode 5,它现在是我的主要IDE。但是,我现在需要为项目中的单个文件禁用自动引用计数。

I recently downloaded Xcode 5, and it's now my primary IDE. However, I now need to disable Automatic Reference Counting for a single file in my project.

在Xcode 4中,我进入了目标下的Build Phases选项卡,我可以双击Compile Sources部分右侧的一行,添加 -fno-objc-arc 到编译器标志列表,然后关闭。

In Xcode 4, I went to the Build Phases tab under my target, and I could double click the on the right side of a row in the Compile Sources section, add -fno-objc-arc to the list of compiler flags, and be off.

然而,在5中,该列似乎无法点击:

In 5, however, the column seems to be unclickable:

那么,我该怎么做?

推荐答案

好吧,我刚试过,发现你必须把窗户拉到一个较小的宽度。您需要将其拖回以显示编译器标志列:

Well, I just tried and found that you must had dragged the window to a smaller width. You need to drag it back to show the Compiler Flag column:

这篇关于如何在Xcode 5中为单个文件禁用ARC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 16:33