Dumb newbie question here.
I'm editing and compiling a simple file - can get it to fail compilation with various errors - but when it runs (right after compiling), it's running a previous version of the code. Even to the point that if I delete the directory the previous file was in, running/compiling in the new directory causes the old directory to reappear!
I can even get this on a subsequent generation - I get the results of the 2nd file when I attempt to compile/run a 3rd file.
I can't see anything in the file paths that would cause this linking/mirroring and really don't understand how the compiliation and running can be to/from different locations, although that's really what it looks like (errors in compilation clearly tied to what I'm looking at in the editor screen, but output clearly what was is in another source code).
Any suggestions? My guess is it's an XCode setting I've got wrong but no clue what it could be.
Thanks
Matthew