{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/xctool/issues/620","labels_url":"https://api.github.com/repos/facebook/xctool/issues/620/labels{/name}","comments_url":"https://api.github.com/repos/facebook/xctool/issues/620/comments","events_url":"https://api.github.com/repos/facebook/xctool/issues/620/events","html_url":"https://github.com/facebook/xctool/issues/620","id":113864738,"number":620,"title":"Assertion failure in -[TestRunState beginTest:] with 0.2.7","user":{"login":"juliangrosshauser","id":2218519,"avatar_url":"https://avatars.githubusercontent.com/u/2218519?v=3","gravatar_id":"","url":"https://api.github.com/users/juliangrosshauser","html_url":"https://github.com/juliangrosshauser","followers_url":"https://api.github.com/users/juliangrosshauser/followers","following_url":"https://api.github.com/users/juliangrosshauser/following{/other_user}","gists_url":"https://api.github.com/users/juliangrosshauser/gists{/gist_id}","starred_url":"https://api.github.com/users/juliangrosshauser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliangrosshauser/subscriptions","organizations_url":"https://api.github.com/users/juliangrosshauser/orgs","repos_url":"https://api.github.com/users/juliangrosshauser/repos","events_url":"https://api.github.com/users/juliangrosshauser/events{/privacy}","received_events_url":"https://api.github.com/users/juliangrosshauser/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-28T16:43:36Z","updated_at":"2015-10-28T17:53:48Z","closed_at":"2015-10-28T17:53:48Z","body":"I'm getting the following assertion failure with xctool `0.2.7`:\r\n\r\n```\r\n2015-10-28 17:18:51.736 xctool[33584:89817] *** Assertion failure in -[TestRunState beginTest:], /tmp/xctool20151025-93446-4sacdx/xctool-0.2.7/xctool/xctool/TestRunState.m:112\r\n\r\n2015-10-28 17:18:51.804 xctool[33584:89817] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Can't find test state for '-[ActionParserTests testRichMediaExecuteActions]', check senTestList'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x00007fff8cb55e32 __exceptionPreprocess + 178\r\n\t1   libobjc.A.dylib                     0x00007fff911474fa objc_exception_throw + 48\r\n\t2   CoreFoundation                      0x00007fff8cb5ab0a +[NSException raise:format:arguments:] + 106\r\n\t3   Foundation                          0x00007fff93e68e16 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198\r\n\t4   xctool                              0x00000001068e296d -[TestRunState beginTest:] + 473\r\n\t5   xctool                              0x00000001068e1e3a -[Reporter handleEvent:] + 1160\r\n\t6   xctool                              0x00000001068e1992 -[Reporter parseAndHandleEvent:] + 151\r\n\t7   xctool                              0x00000001068ef60a -[LineReader processBuffer] + 85\r\n\t8   xctool                              0x00000001068ef773 -[LineReader dataAvailableNotification:] + 100\r\n\t9   CoreFoundation                      0x00007fff8cae1c9c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12\r\n\t10  CoreFoundation                      0x00007fff8cae1c2f ___CFXRegistrationPost_block_invoke + 63\r\n\t11  CoreFoundation                      0x00007fff8cae1ba7 _CFXRegistrationPost + 407\r\n\t12  CoreFoundation                      0x00007fff8cae1912 ___CFXNotificationPost_block_invoke + 50\r\n\t13  CoreFoundation                      0x00007fff8ca9e6d2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922\r\n\t14  CoreFoundation                      0x00007fff8ca9d925 _CFXNotificationPost + 693\r\n\t15  Foundation                          0x00007fff93d7e0fa -[NSNotificationCenter postNotificationName:object:userInfo:] + 66\r\n\t16  Foundation                          0x00007fff93e41c50 _performFileHandleSource + 1660\r\n\t17  CoreFoundation                      0x00007fff8caeb8b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\r\n\t18  CoreFoundation                      0x00007fff8cacb0ac __CFRunLoopDoSources0 + 556\r\n\t19  CoreFoundation                      0x00007fff8caca5cf __CFRunLoopRun + 927\r\n\t20  CoreFoundation                      0x00007fff8cac9fc8 CFRunLoopRunSpecific + 296\r\n\t21  CoreFoundation                      0x00007fff8cb0b961 CFRunLoopRun + 97\r\n\t22  xctool                              0x00000001068fe89c +[SimulatorWrapper runHostAppTests:device:arguments:environment:feedOutputToBlock:error:] + 716\r\n\t23  xctool                              0x00000001068ebea5 -[OCUnitIOSAppTestRunner runTestsAndFeedOutputTo:startupError:otherErrors:] + 2282\r\n\t24  xctool                              0x00000001068ed95b -[OCUnitTestRunner runTests] + 209\r\n\t25  xctool                              0x00000001068fb957 __158-[RunTestsAction blockForTestable:focusedTestCases:allTestCases:testableExecutionInfo:testableTarget:isApplicationTest:arguments:environment:testRunnerClass:]_block_invoke + 335\r\n\t26  xctool                              0x00000001068fd6ad __56-[RunTestsAction runTestables:options:xcodeSubjectInfo:]_block_invoke433 + 336\r\n\t27  xctool                              0x00000001068fcded -[RunTestsAction runTestables:options:xcodeSubjectInfo:] + 5030\r\n\t28  xctool                              0x00000001068fadec -[RunTestsAction performActionWithOptions:xcodeSubjectInfo:] + 1874\r\n\t29  xctool                              0x0000000106910436 -[TestAction performActionWithOptions:xcodeSubjectInfo:] + 106\r\n\t30  xctool                              0x00000001068e5c2c -[XCTool run] + 3316\r\n\t31  xctool                              0x00000001068e4572 main + 1064\r\n\t32  xctool                              0x00000001068e1224 start + 52\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n```\r\n\r\n`-[ActionParserTests testRichMediaExecuteActions]` is a C++ Google Test.\r\nWith `0.2.6` everything is working fine.\r\n\r\nI'd love to share an example reproducing this issue, but the only code that's triggering the assertion failure I found so far is closed source. I'm investigating further, trying to find the commit between `0.2.6` and `0.2.7` that introduced this problem. I just wanted to share this stack trace first, in the hope of that it looks familiar to someone."}}