Trying to integrate unit tests into Xcode for iOS 5.0 project, but cannot get files to link correctly <p>I am trying to add unit tests into my Xcode project for an iOS app that I am working on. I have SenTest working with basic examples, but the second I try to test any of the project code, I get linker errors like so:</p> <pre><code>"_OBJC_CLASS_$_Account", referenced from: objc-class-ref in Tests.o ld: symbol(s) not found for architecture i386 </code></pre> <p>Obviously, I could solve this by duplicating my app target configuration into my test configuration, making all of the compile sources the same and such, but this will make two different targets that I will have to maintain, which is very unappealing. Also, I could refactor the project to use a static library and share between the app and the test targets, but that also is undesirable.</p> <p>Is there any way that I can use the built objects from the app target in the test target? This sure seems like a lot of work to get unit testing in my project...</p> <p>Thanks for any and all help!</p>