I'm running test cases with the SenTestKit framework. When I add the UIKit.framework to my test target and run it with debugger, the debugger fails with the following message:
Code:
2009-07-14 17:09:17.793 otest[45997:813] The test bundle at Test.octest could not be loaded because its Objective-C runtime information does not match the runtime information required by the test rig. This is likely because the test rig is being run with Objective-C garbage collection disabled, but the test bundle requires Objective-C garbage collection. To enable Objective-C garbage collection for the test rig, run it in an environment without the OBJC_DISABLE_GC environment variable.
2009-07-14 17:09:17.817 otest[45999:203] *** NSTask: Task create for path '/Users/ff/dev/iphone/play/testApp/build/Debug-iphonesimulator/Test.octest/Test' failed: 8, "Exec format error". Terminating temporary process.
When I remove the UIKit framework from the test target, all works well. But the iphone doesn't have GC, so how could the UIKit need it. Furthermore, my actual app works fine - it's just the test cases that fail. I'm confused.
Any thoughts appreciated