title: No type or protocol named 'AVCaptureVideoDataOutputSampleBufferDelegate' in -Swift.h header file
body: <p>I have an Objective-C Project in which I use Swift scripts amongst Obj-C scripts. </p>
  
  <p>In one of the Swift scripts I have a class:</p>
  
  <pre><code>@objc public class VideoCapture: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate {
  ~~bunch of functions~~
  }
  </code></pre>
  
  <p>Because it's an Obj-C project, I prepended it with @obj, so that they appear in my ($project_name-Swift.h) header file. </p>
  
  <p>I get the error for what's written in my header file:</p>
  
  <p>// snippet from header file: project_name-Swift.h</p>
  
  <pre><code> #import &lt;AVFoundation/AVFoundation.h&gt;.  &lt;— I added this to make sure that AVFoundation is present in the header file
  
  SWIFT_CLASS("_TtC17FLIROneSDKExample12VideoCapture")
  @interface VideoCapture : NSObject &lt;AVCaptureVideoDataOutputSampleBufferDelegate&gt;   &lt;&lt;——!!! error: No type or protocol named 'AVCaptureVideoDataOutputSampleBufferDelegate'
  - (void)captureOutput:(AVCaptureOutput * _Nonnull)output didOutputSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer fromConnection:(AVCaptureConnection * _Nonnull)connection;
  - (void)captureOutput:(AVCaptureOutput * _Nonnull)output didDropSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer fromConnection:(AVCaptureConnection * _Nonnull)connection;
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  @end
  </code></pre>
  
  <p>I don't understand what's causing it, and I guess it has to do with not being able to access the AVFoundation library from the header file correctly or something. </p>
  
  <p>Any ideas to solve this?</p>