I found that the minimum case to reproduce this is the following
#import <XCTest/XCTest.h>
@interface DummyTest : XCTestCase
@end
@implementation DummyTest
- (void)setUp {
[super setUp];
}
- (void)tearDown {
[super tearDown];
}
- (void)testExample {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title"
message:@"Message"
delegate:nil
cancelButtonTitle:@"Cancel"
otherButtonTitles:nil];
[alert show];
XCTAssertTrue(YES);
}
@end
It seems that showing the UIAlertView in the test caused this problem. This worked in Xcode 5.0, but was corrupted in Xcode 5.1.
- Xcode Version 5.1 (5B130a)
- OSX Version 10.9.2
If you have this problem, try the code above and see if it plays
source
share