Mac catalina xcode c++, access file pop_up

Viewed 354

I use Xcode to write c++ programs. My programs contains

freopen("./input.txt", "r", stdin);

every time I change my code and click build and run, there is a pop-up that ask for permisson.

"cpp_binary" would like to access documents folder

This is just annoying as I change my code and rebuild frequently.

How can I bypass this annoying pop-up.

I have tried grant the cpp_binary full disk access right, but it seems that since I changed the code and rebuild, Mac catalina recognize the newly built binary as a different app, and it did not work.

1 Answers

The problem exists because I put my xcode project in documents foler.

After I move the project to ~ (/Users/myusername), the issue goes away.

Related