Re: Unit tests hanging Xcode on Snow Leopard
Re: Unit tests hanging Xcode on Snow Leopard
- Subject: Re: Unit tests hanging Xcode on Snow Leopard
- From: Kiran B <email@hidden>
- Date: Fri, 4 Sep 2009 00:08:11 +0530
- "x-copyrighted-material: http://www.robosoftin.com"
Hello Kevin,
Sorry, as I see it, the link does not have any reference to a known
issue introduced in Xcode 3.2. In fact the article is dated March 2008.
The issue what Matt and I are observing is new in Xcode 3.2. If Xcode
3.1.x is used in 10.5 or 10.6 for same test case, it does work.
Also note that "setTestsPassedString:" is not a test case Developer
has put. It is an internal method which Xcode invokes. I have attached
the sample of Xcode at : http://lists.apple.com/archives/xcode-users/2009/Aug/msg00495.html
Regards,
Kiran
On 03-Sep-2009, at 11:30 PM, Kevin Cathey wrote:
This is a known issue. The best way to workaround this is to create
unit test executables (that directly call otool), and run those
directly versus running the unit tests in a Run Script Build Phase.
Instructions for how to do this can be found at (one set is for
frameworks, the other for applications):
http://chanson.livejournal.com/182472.html
Kevin
On 2 Sep 2009, at 20:12, Matt Ronge wrote:
Hello,
I'm having a problem with Xcode on Snow Leopard where running unit
tests completely hangs Xcode. I had an older project which I wanted
to test, so I selected my Tests target and ran it, which caused
Xcode to hang and I had to force quit it. Checking the console
revealed:
9/2/09 7:53:11 PM Xcode[3932] -[XCBuildLogCommandInvocationSection
testName]: unrecognized selector sent to instance 0x200ec19c0
9/2/09 7:53:11 PM Xcode[3932] -runOperationInBackground raised an
exception: -[XCBuildLogCommandInvocationSection testName]:
unrecognized selector sent to instance 0x200ec19c0
I tried cleaning the project, removing some of the tests,
recreating the tests target, none of it worked. I gave the
xcodebuild CLI a try, it also hung and outputted the same error
message.
I also tried creating a brand new project, and I've been able to
reproduce it:
1. Create a new Cocoa app
2. Add a new test target
3. Create a new unit test file, put some kind of dumb test in there,
4. Try running a the test bundle
5. Xcode will hang with and this error will be dumped into the
console:
9/2/09 8:10:34 PM Xcode[4132] -[XCBuildLogCommandInvocationSection
setTestsPassedString:]: unrecognized selector sent to instance
0x200c6ba60
9/2/09 8:10:34 PM Xcode[4132] -runOperationInBackground raised an
exception: -[XCBuildLogCommandInvocationSection
setTestsPassedString:]: unrecognized selector sent to instance
0x200c6ba60
which is a slightly different error than my other project. Either
way I can't get unit tests to run on Snow Leopard which is a very
big problem for me.
Is this happening for others? Any work arounds? I installed Snow
Leopard on a clean disk, if that makes a difference.
--
Matt Ronge
email@hidden
http://www.mronge.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden