For my app I have fetched the videos from the photo library on my phone and have created a collection view of all the videos. I am able to get the correct file path for each video when I go to upload it to Firebase but it won't let me because I don't have permission to view it.
picture of error in debugger console
I know the function to upload the file to Firebase works because if I access the videos using ImagePickerController and go directly to the video in my photo library I can get the URL from there and upload it.
So to summarize, how do I grant my Xcode project permission to open a video file so the URL can be uploaded to Firebase?
Any help to solve this problem is greatly appreciated!