如何在Xcode 4.2中禁用CoreData的反向关系警告? [英] How to disable no inverse relationship warning for CoreData in Xcode 4.2?
问题描述
在Xcode 3上有一个MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS设置,但在Xcode 4.2中找不到它,并尝试将其设置为用户定义的构建设置没有效果。
使用XCode 4.3:
查找构建设置的方式
-
选择项目节点)
设置标签
查找并设置MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS设置
-
将构建设置向下滚动到底部附近,找到名为数据模型版本编译器(MOMC)警告的部分
-
第一个条目是MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS,默认为NO
-
将其更改为YES
$ b
重新生成,警告应该消失。
There was a MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS setting on Xcode 3 but I cannot find it in Xcode 4.2 and trying to set it as a user defined build setting have no effect.
I know why I should use inverse relationship but I just don't want it for various reasons.
Using XCode 4.3:
Find your way to Build Settings
Select project node (top node) in the project Navigator
Select your project under Targets
Select the "Build Settings" tab
Find and set the MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS setting
Scroll all the way down the build settings to near the bottom and find the section named "Data Model Version Compiler (MOMC) Warnings"
The first entry is "MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS" and it defaults to NO
Change it to YES
Build again, and the warnings should vanish.
这篇关于如何在Xcode 4.2中禁用CoreData的反向关系警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!