sorry i did not post more details - super busy here. i had the same problem as you (i think) after updating to iOS 6.
- (id)init {
self = [super init];
if (self != nil) {
NSString *sysv = [[UIDevice currentDevice] systemVersion];
NSLog(@"sys version = %@", sysv);
if (getenv("GHUNIT_CLI") && [@"6.0" isEqualToString:sysv]) {
if ([GHTestRunner run] > 0)
[NSException raise:NSGenericException format:@""];
}
}
return self;
}
int main(int argc, char *argv[]) {
int retVal;
@autoreleasepool {
if (getenv("GHUNIT_CLI")) {
// skip logging for command line builds
} else {
LjsDefaultFormatter *formatter = [[LjsDefaultFormatter alloc] init];
DDTTYLogger *tty = [DDTTYLogger sharedInstance];
[tty setLogFormatter:formatter];
[DDLog addLogger:tty];
}
NSString *GHUNIT_DELEGATE;
#if TARGET_IPHONE_SIMULATOR
GHUNIT_DELEGATE = @"GHUnitIPhoneAppDelegate";
#else
GHUNIT_DELEGATE = @"GHUnitIOSAppDelegate";
#endif
# LjsApplicationTestRunnerIOS is my subclass
retVal = UIApplicationMain(argc, argv, NSStringFromClass([LjsApplicationTestRunnerIOS class]), GHUNIT_DELEGATE);
}
return retVal;
}