I am hitting a problem I don't think I've ever seen before, in Xcode Version 14.0.1.
When I want to look at a certain file, I get this message:
*The file “CoreDataBox.swift” couldn’t be opened because you don’t have permission to view it.
To view or change permissions, select the item in the Finder and choose File > Get Info.*
**OK**
I can see in the terminal that the file couldn't have more permissions:
me@My-Mac Swift_ToolBox % ls -l CoreDataBox.swift
-rw-rw-rw-@ 1 me staff 38727 Mar 4 2020 CoreDataBox.swift
me@My-Mac Swift_ToolBox %
I have other files showing up much less permissions in the terminal and at the same time opening up with no issue in Xcode
Can someone tell me what is missing here?
If I select the item in the Finder and choose File > Get Info as suggested in the Xcode message; it has absolutely no effect (even when changing the permissions).
CodePudding user response:
Though I still do not understand why this problem happened. (An explanation is welcome)
I solved it by removing the reference to the file in Xcode and then adding the file again.
The issue disappeared after that.