title: How to add enums to realm model? RLMObject?
body: <p>This is my serviceModel.h</p>
  
  <pre><code>typedef NS_ENUM(NSInteger, OKServiceType) {
      OKServiceTypePending = 0,
      OKServiceTypeAccepted ,
      OKServiceTypeStarted,
      OKServiceTypeCompleted,
      OKServiceTypeClosed,
      OKServiceTypeCancelled
  };
  @interface serviceModel : RLMObject
  @property NSString *job_id;
  @property NSString *job_service_id;
  @property NSString *service_id;
  @property NSString *vendor_id;
  @property NSString *timeslot;
  @property NSString *points;
  @property OKServiceType *status;
  @property NSString *service_name;
  @property NSString *image_url;
  @property NSString *vendor_name;
  @property NSString *subservice_desc;
  @property NSString *subservice_id;
  @property NSString *display_datetime;
  @property NSString *status_text;
  @end
  
  RLM_ARRAY_TYPE(serviceModel)
  </code></pre>
  
  <p>I know we can add the property type as <a href="https://realm.io/docs/objc/latest/#models" rel="nofollow noreferrer">These</a>. But I cann;t find the proper way to add the enum to my models as realm collects all models on start only so it do crash due to this </p>
  
  <pre><code>@property OKServiceType *status;
  </code></pre>
  
  <p>I am having crash as</p>
  
  <blockquote>
    <p>Error      Error Domain=NSCocoaErrorDomain Code=3010 "remote notifications are not supported in the simulator"</p>
    
    <p>UserInfo={NSLocalizedDescription=remote notifications are not
    supported in the simulator} 2017-06-12 15:20:41.049 AppName[9974:157085]</p>
    
    <p>*** Terminating app due to uncaught exception 'RLMException', reason: 'Can't persist property 'status' with incompatible type. Add to
    ignoredPropertyNames: method to ignore.'</p>
  </blockquote>
  
  <p>Any Help would be appreciated alot.. </p>