title: AVPlayer forward class declaration
body: <p>So I have this <code>AVPlayerViewController</code> nested inside a container view in my storyboard. I access this player vide controller using <code>prepareForSegue</code>. But when I attempt to set any properties on the <code>player</code> property of it, Xcode gives me an error <code>Receiver 'AVPlayer' for class message is a forward declaration</code>. I have AVKit correctly imported in the <code>.h</code>. What am I doing wrong?</p>
  
  <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {  
      if ([segue.identifier isEqualToString:@"videoPlayerEmbed"]) {
          self.videoPlayerController = (AVPlayerViewController *)segue.destinationViewController;
          self.videoPlayerController.delegate = self;
          self.videoPlayerController.player = [[AVPlayer alloc] init];
      } else {
          [super prepareForSegue:segue sender:sender];
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/xVWRk.png" alt=""></p>