devroom.io/drafts/2010-10-12-sentestcase-xcbuildlogcommandinvocationsection-error-in-xcode-32.md
Ariejan de Vroom dbae98c4c0 Moar updates
2013-03-24 14:27:51 +01:00

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
iphone
sdk
xcode

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.