{"action":"created","issue":{"url":"https://api.github.com/repos/plu/simctl/issues/7","repository_url":"https://api.github.com/repos/plu/simctl","labels_url":"https://api.github.com/repos/plu/simctl/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/plu/simctl/issues/7/comments","events_url":"https://api.github.com/repos/plu/simctl/issues/7/events","html_url":"https://github.com/plu/simctl/issues/7","id":193088229,"number":7,"title":"install! triggers: Mach error -308 - (ipc/mig) server died","user":{"login":"garriguv","id":346164,"avatar_url":"https://avatars.githubusercontent.com/u/346164?v=3","gravatar_id":"","url":"https://api.github.com/users/garriguv","html_url":"https://github.com/garriguv","followers_url":"https://api.github.com/users/garriguv/followers","following_url":"https://api.github.com/users/garriguv/following{/other_user}","gists_url":"https://api.github.com/users/garriguv/gists{/gist_id}","starred_url":"https://api.github.com/users/garriguv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garriguv/subscriptions","organizations_url":"https://api.github.com/users/garriguv/orgs","repos_url":"https://api.github.com/users/garriguv/repos","events_url":"https://api.github.com/users/garriguv/events{/privacy}","received_events_url":"https://api.github.com/users/garriguv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-02T10:55:52Z","updated_at":"2016-12-02T11:57:32Z","closed_at":null,"body":"Hi Johannes,\r\n\r\nWe're seeing a quite frequent problem when trying to install apps in the simulator and I'm wondering if you've ever encountered it:\r\n\r\nWe're running the following command to start the simulator and install the app:\r\n\r\n```ruby\r\n# launch the simulator\r\n@device.launch!\r\n@device.wait! {|d| d.state == :booted}\r\n\r\n# install the app\r\n@device.install!(@app_path)\r\n```\r\n\r\nQuite often, the `install!` step fails and we get the following output:\r\n\r\n```\r\nAn error was encountered processing the command (domain=NSMachErrorDomain, code=-308):\r\nThe operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died)\r\n(StandardError)\r\n```\r\n\r\nI found this thread on the dev forums https://forums.developer.apple.com/message/70514#70514\r\n\r\nThat lead me to these crash reports: https://gist.github.com/garriguv/d6a35a39ec87e33254917948c130d357\r\n\r\nNot super helpful but I've filed a radar. \r\n\r\nI've had to add a pretty long `sleep` before trying to install the app. That reduces the occurrences but it obviously not optimal..."},"comment":{"url":"https://api.github.com/repos/plu/simctl/issues/comments/264438831","html_url":"https://github.com/plu/simctl/issues/7#issuecomment-264438831","issue_url":"https://api.github.com/repos/plu/simctl/issues/7","id":264438831,"user":{"login":"plu","id":31597,"avatar_url":"https://avatars.githubusercontent.com/u/31597?v=3","gravatar_id":"","url":"https://api.github.com/users/plu","html_url":"https://github.com/plu","followers_url":"https://api.github.com/users/plu/followers","following_url":"https://api.github.com/users/plu/following{/other_user}","gists_url":"https://api.github.com/users/plu/gists{/gist_id}","starred_url":"https://api.github.com/users/plu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plu/subscriptions","organizations_url":"https://api.github.com/users/plu/orgs","repos_url":"https://api.github.com/users/plu/repos","events_url":"https://api.github.com/users/plu/events{/privacy}","received_events_url":"https://api.github.com/users/plu/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T11:57:32Z","updated_at":"2016-12-02T11:57:32Z","body":"Hey Vincent,\r\n\r\nwe were not using the `install!` command of `simctl` at all, so we never ran into this issue. From a first glance at your crash log and the error message I must admit that I don't have any idea what might be causing this, sorry!\r\n\r\nIn the crash log I noticed that the path to your Xcode is `/Applications/Xcode-8.1.app`. I assume it's one of your CI nodes, right? Are your jobs using different versions of Xcode? Is it possible that there are still some processes of the Simulator running from a previous job execution, that got launched by Xcode 8.1 and the next job will be using a different version of Xcode?"}}
{"actor":{"display_login":"plu"}}