更新时间:2022-10-26 19:14:42
使用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.