Video cannot be found in the bundle error message

I am having difficulty coding my video to play in the app I am developing.

My video file is located in the navigator pane, along with the other swift files in the project, with an A to the right hand side of the file, which I thought means it is available in the bundle. Unfortunately, an error saying the video cannot be found in the bundle shows at the bottom of my Xcode screen, after previewing the project. The file names match. Any further trouble shooting I'm doing references the old Xcode app, so I am stuck.

Thanks for the post, have you added the video on your assets? If you do not want to distribute your videos on your binary, best way is to point to the remote video as the sample here: https://docs-assets.developer.apple.com/published/43f2e96e5b3e/PlayingVideoContentInAStandardUserInterface.zip

Video(hlsUrl: URL(string: "https://devstreaming-cdn.apple.com/videos/wwdc/2018/103zvtnsrnrijr/103/hls_vod_mvp.m3u8")!,
                  title: "Apple Design Awards",
                  duration: 2946),

Otherwise you can added into the sample and use the player to grab it from there?

https://developer.apple.com/documentation/avkit/playing-video-content-in-a-standard-user-interface#Create-and-configure-the-player-view-controller

Do you have a focused sample showing how you play your video? Something developers here can see?

That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

Albert Pascual
  Worldwide Developer Relations.

Thank you so much for your prompt reply! I dragged and dropped the video into my xcode project, copying it over. The video is called "UsingTheCricutMaker". Here is a screenshot of what my project navigator and code looks like.

Video cannot be found in the bundle error message
 
 
Q