I'm using Unit Testing in XCode 4. I've been adding my application *.m files to the unit test target "compile sources" as I refer to them so the unit test will build/run.
Is there a better way here?
Note - I've just tried adding the application to the unit test target "target dependencies", but this didn't seem to work (still get some build errors).
Yes, you will need to add each and every .m file you need to your unit test target.
This will include them in the target compile and link phases.