{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5407","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/5407/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5407/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5407/events","html_url":"https://github.com/appium/appium/issues/5407","id":96305205,"number":5407,"title":"error: Could not remove app from device","user":{"login":"ivan-baranovski-intellectsoft","id":12170395,"avatar_url":"https://avatars.githubusercontent.com/u/12170395?v=3","gravatar_id":"","url":"https://api.github.com/users/ivan-baranovski-intellectsoft","html_url":"https://github.com/ivan-baranovski-intellectsoft","followers_url":"https://api.github.com/users/ivan-baranovski-intellectsoft/followers","following_url":"https://api.github.com/users/ivan-baranovski-intellectsoft/following{/other_user}","gists_url":"https://api.github.com/users/ivan-baranovski-intellectsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/ivan-baranovski-intellectsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivan-baranovski-intellectsoft/subscriptions","organizations_url":"https://api.github.com/users/ivan-baranovski-intellectsoft/orgs","repos_url":"https://api.github.com/users/ivan-baranovski-intellectsoft/repos","events_url":"https://api.github.com/users/ivan-baranovski-intellectsoft/events{/privacy}","received_events_url":"https://api.github.com/users/ivan-baranovski-intellectsoft/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/OnGoing","name":"OnGoing","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2015-07-21T12:33:33Z","updated_at":"2016-06-26T17:36:12Z","closed_at":null,"body":"I am using appium version 1.4.8, xcode 6.4 and i am running a tests on the ipad of IOS - 8.3. After finishing the tests i am getting the below error:\r\ninfo: [debug] Stopping iOS log capture\r\ninfo: [debug] Running ios sim reset flow\r\ninfo: [debug] Killing the simulator process\r\ninfo: [debug] Killing any other simulator daemons\r\ninfo: [debug] Killall iOS Simulator\r\n\r\ninfo: [debug] fullReset requested. Will try to uninstall the app.\r\n\r\ninfo: [debug] [INSTSERVER] Instruments exited with code null\r\ninfo: [debug] Cleaning up after instruments exit\r\ninfo: [debug] Running ios sim reset flow\r\ninfo: [debug] Killing the simulator process\r\ninfo: [debug] Killing any other simulator daemons\r\n\r\ninfo: [debug] Killall iOS Simulator\r\n\r\ninfo: [debug] fullReset requested. Will try to uninstall the app.\r\n\r\ninfo: [debug] Removed com.cirruspath.temp.intellectsoft.CirrusInsight\r\n\r\ninfo: [debug] Cleaning up appium session\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":null,\"sessionId\":\"e3794f69-ef6e-47a1-afdd-5ce6f457551b\"}\r\ninfo: <-- DELETE /wd/hub/session/e3794f69-ef6e-47a1-afdd-5ce6f457551b 200 8799.223 ms - 76 {\"status\":0,\"value\":null,\"sessionId\":\"e3794f69-ef6e-47a1-afdd-5ce6f457551b\"}\r\n\r\ninfo: [debug] Cleaning up appium session\r\n\r\nerror: Could not remove com.cirruspath.temp.intellectsoft.CirrusInsight from device\r\n\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":null,\"sessionId\":\"e3794f69-ef6e-47a1-afdd-5ce6f457551b\"}\r\n\r\nerror: Unexpected error: Error: Can't set headers after they are sent.\r\n    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11)\r\n    at ServerResponse.header (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/response.js:695:10)\r\n    at ServerResponse.send (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/response.js:146:12)\r\n    at ServerResponse.json (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/response.js:235:15)\r\n    at ServerResponse.send (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/response.js:134:21)\r\n    at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/server/responses.js:89:21\r\n    at safely (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/server/helpers.js:306:5)\r\n    at exports.respondSuccess (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/server/responses.js:88:3)\r\n    at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/server/responses.js:120:9\r\n    at [object Object].Appium.cleanupSession (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/appium.js:338:5)\r\n    at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/appium.js:376:10)\r\n    at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1372:5)\r\n    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:251:17\r\n    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:148:21\r\n    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:248:21\r\n    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:612:34\r\n    at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1296:13)\r\n    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/node-idevice/main.js:140:6\r\n    at ChildProcess.exithandler (child_process.js:758:5)\r\n    at ChildProcess.emit (events.js:110:17)\r\n    at maybeClose (child_process.js:1015:16)\r\n    at Socket.<anonymous> (child_process.js:1183:11)\r\n    at Socket.emit (events.js:107:17)\r\n    at Pipe.close (net.js:485:12) context: [DELETE /wd/hub/session/e3794f69-ef6e-47a1-afdd-5ce6f457551b {}]\r\n\r\nThe problem is only for real device."},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/228612621","html_url":"https://github.com/appium/appium/issues/5407#issuecomment-228612621","issue_url":"https://api.github.com/repos/appium/appium/issues/5407","id":228612621,"user":{"login":"SrinivasanTarget","id":8896549,"avatar_url":"https://avatars.githubusercontent.com/u/8896549?v=3","gravatar_id":"","url":"https://api.github.com/users/SrinivasanTarget","html_url":"https://github.com/SrinivasanTarget","followers_url":"https://api.github.com/users/SrinivasanTarget/followers","following_url":"https://api.github.com/users/SrinivasanTarget/following{/other_user}","gists_url":"https://api.github.com/users/SrinivasanTarget/gists{/gist_id}","starred_url":"https://api.github.com/users/SrinivasanTarget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SrinivasanTarget/subscriptions","organizations_url":"https://api.github.com/users/SrinivasanTarget/orgs","repos_url":"https://api.github.com/users/SrinivasanTarget/repos","events_url":"https://api.github.com/users/SrinivasanTarget/events{/privacy}","received_events_url":"https://api.github.com/users/SrinivasanTarget/received_events","type":"User","site_admin":false},"created_at":"2016-06-26T17:36:12Z","updated_at":"2016-06-26T17:36:12Z","body":"@KateOgar Feel free to reopen the issue if you hit the same.Closing this as fix is already released."}}
{"actor":{"display_login":"SrinivasanTarget"}}