1.1 KiB
1.1 KiB
title | kind | slug | created_at | tags | |||
---|---|---|---|---|---|---|---|
SenTestCase: XCBuildLogCommandInvocationSection error in XCode 3.2 | article | sentestcase-xcbuildlogcommandinvocationsection-error-in-xcode-32 | 2010-10-12 |
|
Today I wanted to add some unit tests to an iPhone project I'm working on. I came across the following error when trying to run my tests:
An internal error occurred when handling command output: -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x2017a22a0
An internal error occurred when handling command output: -[XCBuildLogCommandInvocationSectionRecorder endMarker]: unrecognized selector sent to instance 0x201719b60
~ It appears there's a bug in XCode somewhere that prevents unit tests to run (yeah, I know, there should be tests for that at Apple). Anyway, you can easily fix this.
Double-click on Run Script for your testing target. Replace
"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
with
"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 1> /tmp/RunUnitTests.out
Now, build your test target again and you should be good to go.