In the Products folder (in the Project Navigator on the Navigator tab on the left side of the Xcode IDE) you will find the executable file. Click on the executable file.
If you haven't already specified, make sure the Show File Inspector icon is displayed on the Utilities tab to the right of the Xcode IDE.
From the inspector you will see the full path showing the path to the executable file, and at the end there will be an arrow. Clicking on this arrow will open the Finder window in this place, and here you will also see all text files and other files created from the program.
PS. The reason the tuna.txt file was not found when using the search is because it is located in a hidden folder with the executable file.
source share