You could try in System Preferences
-> Security & Privacy
-> Privacy
Scroll down the left side, there should be one says Full Disk Access
. In there, you could add Xcode
, or check it if it was unchecked. This should let you read all files if you run the program inside Xcode.
Similarly, in the same page, you can add Xcode to Files and Folders
instead if you only want to give access to certain folders in your computer.
If this doesn't work, in Xcode, open Project Navigator
, which should be in the left sidebar, or shiftcmd+J. Under Product
, right click on the output program(not the product folder), and click Show in Finder
, then drag the program into Full Disc Access
or Files and Folders
from earlier.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…