Forgive this complicated scenario...
I am running Xcode 12.4. I am also using Google Drive for Desktop. I have my C++ command line projects stored on Google Drive, with the "allow offline" option checked, so the files sync locally. I do this because I am a high school teacher, and I have my students save their work in a shared Google Drive folder that syncs with me. In order for easy use of text files, I have the students modify the location of their build folder so that it is included within their project folder (settings -> locations -> advanced -> custom, relative to workspace) that is shared. This way, they can easily add input text files to their build folder without having to deal with file paths in their code. If I did not change this setting, then their build folder is harder to find and does not sync with me since it is saved in a folder on their machine outside of the Google Drive Folder. Hence changing the location to be "relative to workspace". So here is my issue. On Mac, Google Drive is treated as an external drive. So trying to execute code from it causes a permission issue, even within the IDE. Build works, but I cannot execute any code.
So my issue is that if I have the kids use the default build locations so they (and I) can run their code without having to move the entire project folder in and out of the Google Drive folder, then I have an issue with input and output file locations. I suppose a workaround would be to hard code in file paths (though I am not sure how to do this given the sharing and different folder names), but my real question is how can I get around this permission issue of running programs where the executable is on the Google Drive mount?
I hope this is clear. Thanks.
Zach
Selecting any option will automatically load the page