title: XCode 9 - Error while importing #import <objc/runtime.h> - for Simulator Only
body: <p>I am trying to import #import  &amp; it gives me below error:</p>
  
  <p><strong><em>Declaration of 'objc_property_t' must be imported from module 'ObjectiveC.runtime' before it is required</em></strong></p>
  
  <p>Here is the code:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  #if TARGET_IPHONE_SIMULATOR
  #import &lt;objc/objc-runtime.h&gt;
  #else
  #import &lt;objc/runtime.h&gt;
  #import &lt;objc/message.h&gt;
  #endif
  </code></pre>
  
  <p>Please Note: For Device, it's compiled successfully. It generates an error for Simulator only. This happens since I started using XCode 9. For XCode 8 it was working fine.</p>