iPhone sdk 3.1.2, xcode 3.1.4, mac os x 10.5.8,
I'm a newbie using OCUnit comes with iphone sdk. The only error i get is:
error: Test rig '/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk/Developer/usr/bin/otest' existed abnormally with code 139 (it may have crashed).
Does anyone know what it is? Thanks.
EDIT: I found the cause. I put very stupid code in the -dealloc of the class I was writing unit tests for. Like this:
- (void)dealloc {
[someObject1 dealloc]; //wtf, dealloc?
[someObject2 dealloc]; //wtf, dealloc?
[super dealloc];
}
And sometimes this will cause code 139, sometimes 138.