Zach Waugh: Preventing Xcode from building with #error

zachwaugh:

(…) I wanted Xcode to not even build the app if conflicting conditions were enabled. I came across the #error preprocessor directive which does exactly that, and can be used like this:

      #if defined(APP_STORE) && defined(BETA)
#error Beta enabled for App Store build!
#endif