facebookarchive / xctool

An extension for Apple's xcodebuild that makes it easier to test iOS and macOS apps.
Apache License 2.0
6.91k stars 738 forks source link

Assertion failure in -[ReporterTask publishDataForEvent:] #742

Closed niuemperor closed 7 years ago

niuemperor commented 7 years ago

when i use xctool to run a test.i got this error:

2017-10-26 11:34:50.088 xctool[3417:348156] Assertion failure in -[ReporterTask publishDataForEvent:], /tmp/xctool-20170901-19829-1s5ox9o/xctool-0.3.3/xctool/xctool/ReporterTask.m:193 2017-10-26 11:34:50.093 xctool[3417:348156] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed while write()'ing to the reporter's pipe: Invalid argument (22)' *** First throw call stack: ( 0 CoreFoundation 0x00007fffb7dc52cb exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fffccbd048d objc_exception_throw + 48 2 CoreFoundation 0x00007fffb7dca042 +[NSException raise:format:arguments:] + 98 3 Foundation 0x00007fffb9812c80 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195 4 xctool 0x0000000108265472 -[ReporterTask publishDataForEvent:] + 787 5 xctool 0x0000000108224b44 PublishEventToReporters + 604 6 xctool 0x000000010821e304 -[TestRunState publishEventToReporters:] + 75 7 xctool 0x000000010821ea78 -[TestRunState endTest:] + 824 8 xctool 0x000000010821bf6d -[Reporter handleEvent:] + 1123 9 xctool 0x000000010821bae8 -[Reporter parseAndHandleEvent:] + 151 10 xctool 0x0000000108262950 LaunchTaskAndFeedSimulatorOutputAndOtestShimEventsToBlock_block_invoke + 365 11 libdispatch.dylib 0x00007fffcd488524 _dispatch_call_block_and_release + 12 12 libdispatch.dylib 0x00007fffcd47f8fc _dispatch_client_callout + 8 13 libdispatch.dylib 0x00007fffcd4959a0 _dispatch_queue_serial_drain + 896 14 libdispatch.dylib 0x00007fffcd488306 _dispatch_queue_invoke + 1046 15 libdispatch.dylib 0x00007fffcd4816b5 _dispatch_root_queue_drain + 476 16 libdispatch.dylib 0x00007fffcd48148c _dispatch_worker_thread3 + 99 17 libsystem_pthread.dylib 0x00007fffcd6ce5a2 _pthread_wqthread + 1299 18 libsystem_pthread.dylib 0x00007fffcd6ce07d start_wqthread + 13 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6

please help me

ExtremeMan commented 7 years ago

Do you always see this error? Or did it happen once and that's it?