I just began using xcode. If I have multiple source files (.cpp) in a single project, how do I only build and run a single one? Whenever I try to build it, it only affects main.cpp.
Targets are really difficult to setup actually. Maybe the best is just to remove the files you aren't using from the current target. Select the files you aren't using>press command-I>choose Targets, and uncheck them from the target.