{"action":"closed","issue":{"url":"https://api.github.com/repos/appium/appium/issues/6874","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/6874/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/6874/comments","events_url":"https://api.github.com/repos/appium/appium/issues/6874/events","html_url":"https://github.com/appium/appium/issues/6874","id":178310269,"number":6874,"title":"Failed to start an appuim session","user":{"login":"sami7g","id":22343896,"avatar_url":"https://avatars.githubusercontent.com/u/22343896?v=3","gravatar_id":"","url":"https://api.github.com/users/sami7g","html_url":"https://github.com/sami7g","followers_url":"https://api.github.com/users/sami7g/followers","following_url":"https://api.github.com/users/sami7g/following{/other_user}","gists_url":"https://api.github.com/users/sami7g/gists{/gist_id}","starred_url":"https://api.github.com/users/sami7g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sami7g/subscriptions","organizations_url":"https://api.github.com/users/sami7g/orgs","repos_url":"https://api.github.com/users/sami7g/repos","events_url":"https://api.github.com/users/sami7g/events{/privacy}","received_events_url":"https://api.github.com/users/sami7g/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T10:42:46Z","updated_at":"2016-09-21T16:27:16Z","closed_at":"2016-09-21T16:27:16Z","body":"While running my automation script throwing error like 'SessionNotCreatedExcption'. When launching appium getting the following error.\r\n\r\nerror: Failed to start an Appium session, err was: Error: Installing /Users/OatMac/Library/Developer/Xcode/DerivedData/OATmobile-dqasddtzvemznsefcbkcwpxtfvkr/Build/Products/Debug-iphoneos/OATmobile.app failed\r\n\r\ninfo: [debug] Error: Installing /Users/OatMac/Library/Developer/Xcode/DerivedData/OATmobile-dqasddtzvemznsefcbkcwpxtfvkr/Build/Products/Debug-iphoneos/OATmobile.app failed\r\n    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/node-idevice/main.js:159:6\r\n    at ChildProcess.exithandler (child_process.js:742:7)\r\n    at ChildProcess.emit (events.js:110:17)\r\n    at maybeClose (child_process.js:1015:16)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:1087:5)\r\ninfo: [debug] Responding to client with error: {\"status\":33,\"value\":{\"message\":\"A new session could not be created. (Original error: Installing /Users/OatMac/Library/Developer/Xcode/DerivedData/OATmobile-dqasddtzvemznsefcbkcwpxtfvkr/Build/Products/Debug-iphoneos/OATmobile.app failed)\",\"origValue\":\"Installing /Users/OatMac/Library/Developer/Xcode/DerivedData/OATmobile-dqasddtzvemznsefcbkcwpxtfvkr/Build/Products/Debug-iphoneos/OATmobile.app failed\"},\"sessionId\":null}\r\ninfo: <-- POST /wd/hub/session 500 1260.939 ms - 422\r\n\r\nAnd my code is like below.\r\nString device_version = rb.getString(\"device_version\");\r\n  String device_appPath = rb.getString(\"device_appPath\");\r\n  String device_name = rb.getString(\"device_name\");\r\n  //String device_platform = rb.getString(\"device_platform\");\r\n  File app=new File(\"/Users/OatMac/Library/Developer/Xcode/DerivedData/OATmobile-dqasddtzvemznsefcbkcwpxtfvkr/Build/Products/Debug-iphoneos/OATmobile.app\");\r\n  DesiredCapabilities capabilities = new DesiredCapabilities();\r\n  capabilities.setCapability(CapabilityType.VERSION, device_version);\r\n  capabilities.setCapability(\"deviceName\", device_name);\r\n  capabilities.setCapability(\"app\", app.getAbsolutePath());\r\n  driver = new IOSDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"),capabilities);\r\n\r\nEnvironment:\r\nAppium: 1.4.8\r\nXcode: 7.3.1\r\nMAC: 10.11.1"}}
{"actor":{"display_login":"jlipps"}}