This is a template I threw together for a project I’m working on. I don’t have any magic advice on adapting it - I really just copied something else and hacked on it a little.
This was used in my first Kiwi screencast. If you don’t remember, Xcode wants to put all files in the same target. So I add it to both targets, then remove the Kiwi spec from the main project and, if I’m using a testing rig or a host, remove the main code from the test.
To use, make and untar this into
~/Library/Developer/Xcode/Templates/File Templates/Good Stuff. You
may or may not need to restart Xcode.
This was tested with Xcode 4.0.2.