{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/xctool/issues/494","labels_url":"https://api.github.com/repos/facebook/xctool/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/facebook/xctool/issues/494/comments","events_url":"https://api.github.com/repos/facebook/xctool/issues/494/events","html_url":"https://github.com/facebook/xctool/issues/494","id":59995421,"number":494,"title":"App in simulator closing immediately after start (using KIF)","user":{"login":"jurezove","id":893398,"avatar_url":"https://avatars.githubusercontent.com/u/893398?v=3","gravatar_id":"","url":"https://api.github.com/users/jurezove","html_url":"https://github.com/jurezove","followers_url":"https://api.github.com/users/jurezove/followers","following_url":"https://api.github.com/users/jurezove/following{/other_user}","gists_url":"https://api.github.com/users/jurezove/gists{/gist_id}","starred_url":"https://api.github.com/users/jurezove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jurezove/subscriptions","organizations_url":"https://api.github.com/users/jurezove/orgs","repos_url":"https://api.github.com/users/jurezove/repos","events_url":"https://api.github.com/users/jurezove/events{/privacy}","received_events_url":"https://api.github.com/users/jurezove/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-05T18:38:05Z","updated_at":"2015-03-05T18:38:05Z","closed_at":null,"body":"Hey!\r\n\r\nSo, like the title says ...\r\n\r\n`xcodebuild` runs tests perfectly. I'm using:\r\n```\r\nxcodebuild -workspace SampleProject.xcworkspace -scheme SampleProject -sdk iphonesimulator -destination \"name=iPhone 5,OS=8.1\" clean build test\r\n```\r\n\r\nHowerer, `xctool` fails. The app gets installed and is launched but it gets closed immediately after.\r\n\r\nI'm calling:\r\n```\r\nxctool -workspace SampleProject.xcworkspace -scheme SampleProject -sdk iphonesimulator -destination \"name=iPhone 5,OS=8.1\" clean build test\r\n```\r\n\r\nThe output is:\r\n\r\n```\r\n✓ Touch SampleProject Tests.xctest (6 ms)\r\n      0 errored, 0 warning (1336 ms)\r\n\r\n\r\n  [Info] Collecting info for testables... (1464 ms)\r\n  run-test SampleProject Tests.xctest (8.1, iPhone 5, application-test)\r\n    [Info] Installed 'co.mecommerce.SampleProject'. (626 ms)\r\n    [Info] Launching test host and running tests ... (0 ms)\r\n      -[FAILED_BEFORE TESTS_RAN]\r\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\nTest did not run: the test bundle stopped running or crashed before the test suite started.\r\n\r\n2015-03-05 19:09:51.184 SampleProject[60962:3200428] KIFTester loaded\r\n━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\n    ☂ -[FAILED_BEFORE TESTS_RAN] (0 ms) (0)\r\n      -[SampleTestCase testStupidStuff]\r\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\nTest did not run: the test bundle stopped running or crashed before the test suite started.\r\n━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\n    ☂ -[SampleTestCase testStupidStuff] (0 ms) (1)\r\n    0 passed, 0 failed, 2 errored, 2 total (10189 ms)\r\n\r\n\r\nFailures:\r\n\r\n  0) -[FAILED_BEFORE TESTS_RAN] (SampleProject Tests.xctest)\r\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\nTest did not run: the test bundle stopped running or crashed before the test suite started.\r\n\r\n2015-03-05 19:09:51.184 SampleProject[60962:3200428] KIFTester loaded\r\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\n\r\n  1) -[SampleTestCase testStupidStuff] (SampleProject Tests.xctest)\r\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\nTest did not run: the test bundle stopped running or crashed before the test suite started.\r\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\n\r\n** TEST FAILED: 0 passed, 0 failed, 2 errored, 2 total ** (19713 ms)\r\n```\r\n\r\nThe app is closed right before `-[FAILED_BEFORE TESTS_RAN]`\r\n\r\nI'm suspecting there's a problem with KIF because `XCTests` are run fine using `xctool`\r\n\r\nHere's a sample project using KIF: https://github.com/jurezove/kif-sample-project\r\n\r\nDid anyone experience something like this?"}}