|Nov 7, 2010, 10:44 PM||#1|
OCUnit Testing Problems in Xcode 3.2.4
so I'm trying to get OCUnit testing working in Xcode 3.2.4, but I keep running into problems. I found this article: https://developer.apple.com/library/...TestingXcode3/ (probably need to sign in to read it) as well as this one: http://sqllyw.wordpress.com/2009/11/...-in-xcode-3-2/
Both times, I get to the part where it says to build the unit tests to see the errors and I get different results. I wind up getting 2 errors, instead of the 1 we want to get. The first error is: Command /bin/sh failed with exit code 1. I've done some googling, and it seems others have had this problem, although on older versions of Xcode.
I'm wondering if anyone has had this problem before and knows how to fix it, or has some suggestions on how to fix it?
I should add as well:
The app is added under the Unit Test target's direct dependencies.
I have set the Configuration to Debug and All Configurations under the Build tab.
I have set the Bundle Loader and Test Host to the code shown in the developers article.
Thanks for any help!
|Nov 8, 2010, 01:45 PM||#2|
From what you posted, you're getting the expected behavior. The error message "Command /bin/sh failed with exit code 1." says the unit test failed. You're going to get this message if you have failing unit tests. A failing unit test is going to generate multiple errors: a "Command /bin/sh failed with exit code 1." message plus one error for each failing test.
The way to fix the error is to get all the unit tests to pass. When the unit tests pass the "Command /bin/sh failed with exit code 1." error will go away.
Author, Xcode Tools Sensei
|Dec 16, 2010, 06:58 PM||#4|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|iOS 4.2.1 not supported in Xcode 3.2.5||jacksongan||iPhone/iPad Programming||8||Jan 18, 2011 07:32 PM|
|iPad Simulator 3.2 in Xcode 3.2.5||thepost||iPhone/iPad Programming||1||Dec 1, 2010 04:37 PM|
|Can't download Xcode 3.2.4||rlherrick||Mac Programming||5||Nov 28, 2010 02:32 PM|
|Problem with Xcode 3.2.1 for Snow Leopard||chrisob||iPhone/iPad Programming||1||Jan 9, 2010 01:29 PM|
|Application developed in XCode 3.1.3 - OS X 10.5.7 crashing in XCode 3.2 - OS X 10.6||Monaj||Mac Programming||9||Sep 8, 2009 06:03 AM|
All times are GMT -5. The time now is 06:54 AM.