xcode 如何禁用 Xcode4.2 自动引用计数
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7837024/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to disable Xcode4.2 Automatic Reference Counting
提问by user501836
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.
今天,我已经将我的 xCode 更新到 4.2 版本,我想禁用 ARC,我也用谷歌搜索。但无法解决我的问题。根据搜索结果,在目标设置中,我找不到'Objective-C自动引用计数'项,所以没有机会将其设置为NO。我一一找到项目,也使用搜索字段。
And one know the newest Xcode4.2 ,how to disable the ARC for the project, not for the specific file.
并且知道最新的Xcode4.2,如何禁用项目的ARC,而不是特定文件。
Thanks very much.
非常感谢。
回答by NJones
- Click on you project, in the left hand organizer.
- Select your target, in the next column over.
- Select the Build Settingstab at the top.
- Scroll down to "Objective-C Automatic Reference Counting" (it may be listed as "CLANG_ENABLE_OBJC_ARC" under the User-Definedsettings group),
- and set it to NO.
- 在左侧管理器中单击您的项目。
- 选择你的目标,在下一列结束。
- 选择顶部的构建设置选项卡。
- 向下滚动到“Objective-C 自动引用计数”(它可能在用户定义的设置组下列为“CLANG_ENABLE_OBJC_ARC” ),
- 并将其设置为 NO。
This is on Xcode 4.2 (Build 4D199).
这是在 Xcode 4.2 (Build 4D199) 上。
回答by Alex Gray
In Xcode 4.2 beta, there were 2 places per target that you could toggle the use of ARC... now there seems to be NONE.
在 Xcode 4.2 beta 中,每个目标有 2 个地方可以切换 ARC 的使用......现在似乎没有。
Also, the "Convert to ARC" menu item seems to have disappeared.
此外,“转换为 ARC”菜单项似乎已经消失。
Now, yes, I suppose that the ARC stuff was never meant for Mac Developers, as 4.2 beta wasiOS only, but not exactly sure what Mac developers who didplay with the ARC stuff in their Mac Apps are supposed to do now....
现在,是的,我想的是,ARC的东西从来就不是Mac开发,4.2测试版是唯一的iOS,但不能完全相信谁Mac开发做在他们的Mac应用程序的ARC的东西发挥的现在该怎么办? .
File Radar Reports. Wait for 4.3? redo the app? Edit the .xcode
XML manually? Not sure.
文件雷达报告。等4.3?重做应用程序?.xcode
手动编辑XML?没有把握。