Sunday, September 19, 2010

Problems With Unit Testing, XCode 3.2.4 for iOS

I was beating my head against this for a while, but I eventually found someone else's solution. Here's the error

An internal error occurred when handling command output: -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x200ed2d80

An internal error occurred when handling command output: -[XCBuildLogCommandInvocationSectionRecorder endMarker]: unrecognized selector sent to instance 0x200efecc0

I arrived at by following Apple's docs on Unit Testing. 

The answer was here (http://stackoverflow.com/questions/3516745/3741466#3741466) and basically says to change the Run Script stage of the target from 

"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 

to

"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 1> /tmp/RunUnitTests.out 

 

No comments: