I have found that the minimal case to reproduce this is the following
#import <XCTest/XCTest.h>
@interface DummyTest : XCTestCase
@end
@implementation DummyTest
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title"
message:@"Message"
delegate:nil
cancelButtonTitle:@"Cancel"
otherButtonTitles:nil];
// Commenting out the next row does not cause the problem
[alert show];
XCTAssertTrue(YES);
}
@end
It seems like showing an UIAlertView in a test cause this problem. This was working in Xcode 5.0, but is broken in Xcode 5.1.
- Xcode Version 5.1 (5B130a)
- OSX Version 10.9.2
If you are having this problem try the above code and see if it's reproducable