I am running a program using this simple example code to output a text file. I am using Xcode and simply started a new C++ project from command line tools. For some reason t
To find the current working directory, in the project navigator, under the "Products" folder, right-click the product and choose "Show in Finder". In this directory you will also find the compiled code.
For example:
~/Library/Developer/Xcode/DerivedData/