How to disable no inverse relationship warning for CoreData in Xcode 4.2?

后端 未结 3 1107
时光说笑
时光说笑 2020-12-01 10:18

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.

3条回答
  •  渐次进展
    2020-12-01 10:57

    Using XCode 4.3:

    Find your way to Build Settings

    1. Select project node (top node) in the project Navigator

    2. Select your project under Targets

    3. Select the "Build Settings" tab

    Find and set the MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS setting

    1. Scroll all the way down the build settings to near the bottom and find the section named "Data Model Version Compiler (MOMC) Warnings"

    2. The first entry is "MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS" and it defaults to NO

    3. Change it to YES

    Build again, and the warnings should vanish.

提交回复
热议问题