0

I added a Cocoa Touch testing bundle to my existing iPhone application, the default test seems to run (fail!) just fine, but when I try to add my class from my project to the test target I am not able access the class from that file.

I added the file that I want to test to the unit testing target, but if I try and make an instance of the class I want to test, it is unknown.

Any idea what I could be missing?

Sune Trudslev
  • 964
  • 6
  • 11
  • 1
    Are you importing the app class's header file in the unit test code? If you're unit testing Objective-C code, you shouldn't have to add the app class files to the unit test target. – Swift Dev Journal Sep 04 '12 at 18:20
  • Well, I am pretty certain I already tried that, but that seemed to do the trick. Thanks. – Sune Trudslev Sep 05 '12 at 04:45

0 Answers0