2

I have found many questions on SO regarding ignoring (or fixing) the CoreData warning about an object having more than 100 properties, but I would like to completely suppress the warning from our build. Is this possible? We are using XCode 7.1 if that makes a difference.

Jedidja
  • 16,610
  • 17
  • 73
  • 112
  • Isn’t your model wrongly modelled? You should split it to smaller parts and relations. – thom_ek Oct 30 '15 at 17:00
  • That sounds like a terrifying data model. – Tom Harrington Oct 30 '15 at 17:28
  • We're working on fixing it; we know it's a problem :) I would just like to get the build to have 0 warnings. – Jedidja Oct 30 '15 at 19:12
  • Keep the warnings to remind you to fix the data model! – Mundi Oct 30 '15 at 19:37
  • You *could* represent your model in code, or JSON, or even CSV so it doesn't go through the model compiler. Now, I wouldn't recommend it for that reason, but I have grown quite fond of code-based models. They are, to me, much easier to edit and test. I miss the GUI picture for relationships, but I've gotten quite used to it (and I have a number of helper methods and import/export formats by now). This is especially useful for serving model schemas over RESTful services. – Jody Hagins Oct 31 '15 at 00:42

1 Answers1

2

I found a way!! Although now that I've come back I see @Willeke posted the basic answer two days ago.

Apparently this has been available for a long time (since 4.2).

  • Project > Build Settings
  • Search for MOMC
  • Change "Suppress momc warnings for entities with more than 100 properties" to YES.

enter image description here

Community
  • 1
  • 1
Jedidja
  • 16,610
  • 17
  • 73
  • 112