I've got a C++ project in XCode that builds a static library. I'd like to add a main method to the project to allow me to test some of the code in the library.
In an attempt to do this, I first duplicated the project's target, and I then added a main method to this second target (as per this answer). When I build and run this new target, however, my main method doesn't execute.
Does anyone have any idea what I'm doing wrong?