This question was asked several times in StackOverflow.
The file couldn’t be opened because you don’t have permission to view it
The file “ ” couldn’t be opened because you don’t have permission to view it
File couldn't be opened because you don't have permission,
The file “***.app” couldn’t be opened because you don’t have permission to view it,
and etc
It seems like the problems everyone faced is the same Xcode error, like below, but totally different causes.
For me, the error will appear when I use the wrong Building Setting. So Why Xcode gave the same error to the specific problems. Or In the eyes of Xcode, these problems belong to the same type of error, so how does Xcode classify these errors?