title: AVPlayer local video preview debug errors
body: <p>I am currently playing a video from local with bundle URL.</p>
  <p><code>private let videoURL = Bundle.main.path(forResource: &quot;video&quot;, ofType:&quot;mp4&quot;)</code></p>
  <p>here is the setupPlayer method:</p>
  <pre><code>player = AVPlayer(url: URL(fileURLWithPath: url))
  playerLayer = AVPlayerLayer(player: player)
  playerLayer.frame = videoContainerView.layer.bounds
  playerLayer.videoGravity = .resize
  </code></pre>
  <p>I can preview the video and sound but Xcode generates some errors. After some searching on internet, I can not find anything about how to solve them.</p>
  <pre><code>2021-01-31 15:56:25.026534+0300 PixeryCase[72428:5712733] [] [15:56:25.026] FigSubtitleSampleCreateFromPropertyList signalled err=50 (kFigCFBadPropertyListErr) (NULL or bad plist) at /Library/Caches/com.apple.xbs/Sources/EmbeddedCoreMedia_Sim/EmbeddedCoreMedia-2765.6/Prototypes/ClosedCaptions/FigCaptionCommand.c:792
  2021-01-31 15:56:25.233948+0300 PixeryCase[72428:5712809] [plugin] AddInstanceForFactory: No factory registered for id &lt;CFUUID 0x600002a1be40&gt; 
  2021-01-31 15:56:25.563638+0300 PixeryCase[72428:5712816] [] [15:56:25.564] VMC2SetProperty signalled err=-12823 (kVMCParameterErr) (not a CFString) at /Library/Caches/com.apple.xbs/Sources/EmbeddedCoreMedia_Sim/EmbeddedCoreMedia-2765.6/Prototypes/MediaConverter/VideoMediaConverter2.c:7105
  </code></pre>