'List the resultant file names of each target of an Xcode project, in the command line or otherwise

So I have been following this: List Targets from XCode via command line

I actually wanted a list of all the final executable names and file names that would be produced by building a target. However, I realised this is not the same as the target name.

How can I list the resultant file names of each target of an Xcode project, in the command line or otherwise? I am using MacOS 10.13.6, with Xcode 10.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source