NOTE: \"Use GHUnit\" is not an acceptable answer to this question. I know most think GHUnit is better than the Xcode4 OCUnit, but that\'s not what I\'m asking about. I\'ll evalu
I've run into this after several merges lately where a coworker and I have both added files to the project, and not all of the implementation files are a member of the unit testing target.
The solution:
.m
files (use "Filter in Navigator" (cmd-opt-j) to search for .m
)Note: if the test target checkbox shows -
instead of +
or being unchecked, it means that some, but not all, of the selected files are a member of the target.
I've tried doing more intelligent things at merge time with the .xcodeproj
's project.pbxproj
file, but I've given up out of frustration with its inscrutability every time and fallen back on this method.
(Another note: I only select a few files at a time for two reasons: