Changing the working directory in Xcode
I was able to run my C ++ project in Xcode using cmake -G Xcode. Now I would like to debug it due to the fact that it provided a good gdb.
However, I need to change the working directory where gdb is running, otherwise it won't work. (It needs to read some data from the files relative to the working directory path). What I can do is after gdb stopped typing cd working_dir and then started it manually by typing r. This works, but Xcode will complain constantly and is not an elegant solution.
So somewhere in the build settings I have to set the working directory .. but where ?!
+10
source to share
4 answers