Xcode crash when examining code coverage data

I've been experimenting with setting up Xcode server for a fairly large iOS app. There are about 1500 source files in the app, and a couple major 3rd party libraris. I've got a bot properly configured, building the app, running unit tests and generating code coverage data. However, when attempting to view the code coverage data from an integration Xcode just completely hangs and falls over. I can see the top most level of the entire application, but when I try to disclose that and show the coverage for each source file Xcode hangs.


Has anyone else seen this? I wonder if this UI only works on very lightweight and small applications.


I'm running Xcode 7.0.1 and OSX Server 5.0

I am encountering a similear problem, but with a nearly empty example project I just created. Built upon the 'Master Detail' app template w/ Unit & UI tests.


I created a bot, it runs and the two auto generated tests both pass. I can view and select around all Integration tabs except for Coverage. The moment I select that tab Xcode crashes. See backtrace below.


Xcode 7.1.1


==

Application Specific Information:

ProductBuildVersion: 7B1005

UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]

UserInfo: (null)

Hints: None

Backtrace:

0 0x00007fffa0247e1a __exceptionPreprocess (in CoreFoundation)

1 0x000000010af1ac6e DVTFailureHintExceptionPreprocessor (in DVTFoundation)

2 0x00007fff8f0644fa objc_exception_throw (in libobjc.A.dylib)

3 0x00007fffa0139e92 -[__NSPlaceholderArray initWithObjects:count:] (in CoreFoundation)

4 0x00007fffa0142bf4 +[NSArray arrayWithObjects:count:] (in CoreFoundation)

5 0x000000011e2fca2a -[XCSUIIntegrationCoverageViewController fetchCoverageIntegration:completionBlock:] (in XCSUI)

6 0x000000011e2fc1e4 __57-[XCSUIIntegrationCoverageViewController setIntegration:]_block_invoke (in XCSUI)

7 0x000000011e1ec3ec __96-[XCSService(CodeCoverageAdditions) codeCoverageIntegrationWithIntegrationID:completionHandler:]_block_invoke (in XCSCore)

8 0x000000011e18ffbe __57-[XCSService _findObjectsOfClass:base:completionHandler:]_block_invoke (in XCSCore)

9 0x000000011e19d19b __54-[XCSHTTPRequest performRequestWithCompletionHandler:]_block_invoke_3 (in XCSCore)

10 0x000000011e1e98dc __97-[XCSService(ErrorHandlingAdditions) handleError:forRequest:withFallThroughHandler:retryHandler:]_block_invoke_2 (in XCSCore)

11 0x000000011e2d51b6 -[XCSService(XCSUIAdditions) service:didEncounterError:withRequest:proceed:] (in XCSUI)

12 0x000000011e1e9875 __97-[XCSService(ErrorHandlingAdditions) handleError:forRequest:withFallThroughHandler:retryHandler:]_block_invoke (in XCSCore)

13 0x00007fff950858f5 _dispatch_call_block_and_release (in libdispatch.dylib)

14 0x00007fff9507a3c3 _dispatch_client_callout (in libdispatch.dylib)

15 0x00007fff9508dc1b _dispatch_main_queue_callback_4CF (in libdispatch.dylib)

16 0x00007fffa01fd999 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation)

17 0x00007fffa01bc9cd __CFRunLoopRun (in CoreFoundation)

18 0x00007fffa01bbfc8 CFRunLoopRunSpecific (in CoreFoundation)

19 0x00007fff99fa4d55 RunCurrentEventLoopInMode (in HIToolbox)

20 0x00007fff99fa4b8f ReceiveNextEventCommon (in HIToolbox)

21 0x00007fff99fa49cf _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)

22 0x00007fff9ca81d96 _DPSNextEvent (in AppKit)

23 0x00007fff9ca811c5 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)

24 0x000000010b4ee5f4 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)

25 0x00007fff9ca75d28 -[NSApplication run] (in AppKit)

26 0x00007fff9ca3efbe NSApplicationMain (in AppKit)

27 0x00007fff94f5a5ad start (in libdyld.dylib)

Same with me. Almost empty project 7.1.1


However,

  1. go to Product > Scheme > Edit Scheme ...
  2. Go to 'Test' on the left and then in the panel check the box 'Gather Coverage data'


No more crashes. That being said, crazy that it just crashes like that, everytime.

Thanks for the work around.

Did not fix things for the bot that I had already run integrations from but seems to work when set before performing an integration w/ a new bot / project.

Xcode crash when examining code coverage data
 
 
Q