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.
In XCode 5, 6 and 7, you can still set the variable.
Navigate to Build Settings
A. Select your project on the left side bar under Project Navigator.
B. Select the "Build Settings" tab.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With