{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7535","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7535/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7535/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7535/events","html_url":"https://github.com/appium/appium/issues/7535","id":195552373,"number":7535,"title":"Appium 1.6.3 WebDriverAgentRunner bootstrap fails on iPhone device","user":{"login":"PiotrNestor","id":1422230,"avatar_url":"https://avatars.githubusercontent.com/u/1422230?v=3","gravatar_id":"","url":"https://api.github.com/users/PiotrNestor","html_url":"https://github.com/PiotrNestor","followers_url":"https://api.github.com/users/PiotrNestor/followers","following_url":"https://api.github.com/users/PiotrNestor/following{/other_user}","gists_url":"https://api.github.com/users/PiotrNestor/gists{/gist_id}","starred_url":"https://api.github.com/users/PiotrNestor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiotrNestor/subscriptions","organizations_url":"https://api.github.com/users/PiotrNestor/orgs","repos_url":"https://api.github.com/users/PiotrNestor/repos","events_url":"https://api.github.com/users/PiotrNestor/events{/privacy}","received_events_url":"https://api.github.com/users/PiotrNestor/received_events","type":"User","site_admin":false},"labels":[{"id":143265062,"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-14T14:57:05Z","updated_at":"2016-12-14T14:59:05Z","closed_at":null,"body":"## The problem\r\n\r\nWhen starting an appium based test the WebDriverAgentRunner bootstrap fails with an error\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: 1.6.3\r\n* Last Appium version that did not exhibit the issue (if applicable): 1.6.1\r\n* Desktop OS/version used to run Appium: MacOS 10.12.1\r\n* Node.js version (unless using Appium.app|exe):\r\n* Mobile platform/version under test: iOS 10.1.1\r\n* Real device or emulator/simulator: real device iPhone 5s\r\n* Appium CLI or Appium.app|exe: appium started from command line with command: appium\r\n\r\n## Details\r\n\r\nAfter update from 1.6.1 to 1.6.3 the WeDriverAgentRunner fails\r\n\r\n## Link to Appium logs\r\nAppium logs\r\n```\r\n[XCUITest] Launching WebDriverAgent on the device\r\n[debug] [XCUITest] Carthage found: /usr/local/bin/carthage\r\n[debug] [XCUITest] Killing hanging processes\r\n[debug] [XCUITest] Using real device logger '/usr/local/bin/deviceconsole'\r\n[debug] [XCUITest] Beginning test with command 'xcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=c496c95bffe2a6a86932f0bb9d13f485e0b165df -configuration Debug' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'\r\n[debug] [XCUITest] Unable to get device time. Using local system time\r\n[debug] [XCUITest] Output from idevicedate: Wed Dec 14 15:38:43 CET 2016\r\n\r\n[XCUITest] Waiting for WebDriverAgent to start on device\r\n[debug] [XCUITest] Log file for xcodebuild test: /Users/appium/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/B0A4FD70-EC07-4E53-860D-4BF204A3A6A5/Session-WebDriverAgentRunner-2016-12-14_153844-fvBja9.log\r\n[debug] [WebDriverAgent] Device: Dec 14 15:38:49 Swedbank-iPhone-17 XCTRunner[306] <Notice>: Running tests...\r\n[Xcode] 2016-12-14 15:38:49.527 xcodebuild[46523:4960037] Error Domain=IDETestOperationsObserverErrorDomain Code=5 \"Early unexpected exit, operation never finished bootstrapping - no restart will be attempted\" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}\r\n\r\n[Xcode] 2016-12-14 15:38:49.529 xcodebuild[46523:4960149] Connection peer refused channel request for \"dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface\"; channel canceled <DTXChannel: 0x7f8f81877c80>\r\n\r\n[Xcode] \r\nTesting failed:\r\n\r\n[Xcode] \tTest target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)\r\n** TEST FAILED **\r\n\r\n\r\n[XCUITest] xcodebuild exited with code '65' and signal 'null'\r\n[XCUITest] Error: xcodebuild failed with code 65\r\n    at SubProcess.<anonymous> (../../lib/webdriveragent.js:355:25)\r\n    at emitTwo (events.js:106:13)\r\n    at SubProcess.emit (events.js:191:7)\r\n    at ChildProcess.<anonymous> (../../lib/teen_process.js:197:14)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\r\n Error: xcodebuild failed with code 65\r\n    at SubProcess.<anonymous> (../../lib/webdriveragent.js:355:25)\r\n    at emitTwo (events.js:106:13)\r\n    at SubProcess.emit (events.js:191:7)\r\n    at ChildProcess.<anonymous> (../../lib/teen_process.js:197:14)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\r\n[XCUITest] Shutting down sub-processes\r\n[XCUITest] Shutting down Logger process (pid 46528)\r\n[XCUITest] System log exited with code 'null'\r\n[debug] [XCUITest] Reset not set, continuing\r\n[debug] [iOSLog] Stopping iOS log capture\r\n[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65\r\n    at SubProcess.<anonymous> (../../lib/webdriveragent.js:355:25)\r\n    at emitTwo (events.js:106:13)\r\n    at SubProcess.emit (events.js:191:7)\r\n    at ChildProcess.<anonymous> (../../lib/teen_process.js:197:14)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\r\n\r\n```\r\n\r\n## Code To Reproduce Issue [ Good To Have ]\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/267055329","html_url":"https://github.com/appium/appium/issues/7535#issuecomment-267055329","issue_url":"https://api.github.com/repos/appium/appium/issues/7535","id":267055329,"user":{"login":"mykola-mokhnach","id":7767781,"avatar_url":"https://avatars.githubusercontent.com/u/7767781?v=3","gravatar_id":"","url":"https://api.github.com/users/mykola-mokhnach","html_url":"https://github.com/mykola-mokhnach","followers_url":"https://api.github.com/users/mykola-mokhnach/followers","following_url":"https://api.github.com/users/mykola-mokhnach/following{/other_user}","gists_url":"https://api.github.com/users/mykola-mokhnach/gists{/gist_id}","starred_url":"https://api.github.com/users/mykola-mokhnach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykola-mokhnach/subscriptions","organizations_url":"https://api.github.com/users/mykola-mokhnach/orgs","repos_url":"https://api.github.com/users/mykola-mokhnach/repos","events_url":"https://api.github.com/users/mykola-mokhnach/events{/privacy}","received_events_url":"https://api.github.com/users/mykola-mokhnach/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T14:59:05Z","updated_at":"2016-12-14T14:59:05Z","body":"65 usually means code signing error. What is in this log /Users/appium/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/B0A4FD70-EC07-4E53-860D-4BF204A3A6A5/Session-WebDriverAgentRunner-2016-12-14_153844-fvBja9.log? "}}
{"actor":{"display_login":"mykola-mokhnach"}}