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

后端 未结 3 1106
时光说笑
时光说笑 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:56

    In XCode 5, 6 and 7, you can still set the variable.

    1. Navigate to Build Settings

      A. Select your project on the left side bar under Project Navigator.

      B. Select the "Build Settings" tab.

    2. Find and set MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS

      A. Select 'All' in the upper left of the main screen.

      B. Search for MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS by pasting the key into the search bar.

      C. Change value to YES.

    Build again and the warnings are gone.

    ****EDIT****

    Thanks @RajTandel for the comment. If you still see the warnings, restart Xcode and the warnings should go away.

提交回复
热议问题