title: Objective C, Swift Interoperability issue due to circular dependency
body: <p>I'm working on an iOS project that was done few years back in Objective C. So I've to implement some new features to the existing one, so this time I'm using Swift for that purpose.</p>
  
  <p>I've added a new Swift class:</p>
  
  <pre><code>class CampView: UIView
  {
     // Code
  }
  </code></pre>
  
  <p>I want to access this class in one of my existing Objective C class. So I did like:</p>
  
  <pre><code>@class CampView;
  @interface NewCampViewController : UIViewController
  
  @property (nonatomic, strong) IBOutletCollection(CampView) NSArray *campTypes;
  
  @end
  </code></pre>
  
  <p>But when I connect it to my Storyboard, it is crashing with a message:</p>
  
  <blockquote>
    <p>Terminating app due to uncaught exception 'NSUnknownKeyException',
    reason: '[ setValue:forUndefinedKey:]:
    this class is not key value coding-compliant for the key campTypes.'</p>
  </blockquote>
  
  <p>Also I can't import my system generated Swift header file to this particular class, when I do that it throws an error like :</p>
  
  <blockquote>
    <p>'MyApp-Swift.h' file not found</p>
  </blockquote>
  
  <p>That's why I used <code>@class CampView;</code> in the above snippet. While investigating I found that my <code>NewCampViewController.h</code> is included in the Objective C bridging header. So suspect it is due to circular dependency, but I couldn't fix it yet.</p>
  
  <p>Can anybody please help me to fix this issue ?</p>