title: NS_ENUM - function definition is not allowed here
body: <p>I am receiving the error <code>function definition is not allowed here</code> on all three <code>enum</code>s. I recently updated to Xcode 6.0.1 and I am receiving that error now. How can I fix this error, should I avoid using this macro. I have also set the target SDK to ios 6.0 which supports these macros. </p>
  
  <pre><code>BConstants.h
  
  #ifndef asdf_BPConstants_h
  #define asdf_BPConstants_h
  
  
  typedef NS_ENUM(NSUInteger, BTheme) {
      kField
  };
  
  typedef NS_ENUM(NSUInteger, BItem) {
      kBox
  };
  
  typedef NS_ENUM(NSUInteger, BMovementState) {
      kTouchUp,
      kTouchDown
  };
  
  #endif
  </code></pre>