• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unit tests hanging Xcode on Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unit tests hanging Xcode on Snow Leopard


  • Subject: Re: Unit tests hanging Xcode on Snow Leopard
  • From: Kevin Cathey <email@hidden>
  • Date: Thu, 3 Sep 2009 13:00:41 -0500

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
  • Follow-Ups:
    • Re: Unit tests hanging Xcode on Snow Leopard
      • From: Kiran B <email@hidden>
References: 
 >Unit tests hanging Xcode on Snow Leopard (From: Matt Ronge <email@hidden>)

  • Prev by Date: Re: Warnings and Errors columns empty
  • Next by Date: Re: Unit tests hanging Xcode on Snow Leopard
  • Previous by thread: Re: Unit tests hanging Xcode on Snow Leopard
  • Next by thread: Re: Unit tests hanging Xcode on Snow Leopard
  • Index(es):
    • Date
    • Thread