you don't have permission to view it

there are other unresolved posts on this issue but maybe mine is solvable.

I copied the files I contributed from a working project to a new project using the finder (drag and drop). So I did not copy entitlements. Xcode automatically added the files to the project just fine. My app uses data on a removable drive, or used to, because I now get the error above. At one point I copied the product app to the desktop hoping to get the permissions alert window, but it never came. Oddly, in System Settings/Privacy & Security/Files & Folders my "new" app is listed with "Removable Volumes" slider = on.

The file permissions (unix-like) on that drive haven't changed between projects and allow everyone to read.

How can I fix this?

OK, if that wasn't odd enough... as a work around I made a Data.dataset folder in the apps assets and copied-in a few files to read. Only, they also say "you don't have permission to view it" referring to Assets.xcassets! Yes, this folder was drag-n-dropped from the old project into this new project. Yet if I create a new folder in the project and copy the data into it, I have no permissions as well. No permissions within my own project, anywhere! Hmm. Security gone awry.

To check if my copying files with drag-n-drop was wrong, I created yet another new project and used the "add files" within the new app. No permissions to anywhere!

How do I add permissions to an app?

you don't have permission to view it
 
 
Q