{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7619","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7619/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7619/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7619/events","html_url":"https://github.com/appium/appium/issues/7619","id":197816772,"number":7619,"title":"[XCUITest] Can't complete appium-xcuitest-driver setup for getting \"Listening on USB\"","user":{"login":"ansonliao","id":6060224,"avatar_url":"https://avatars.githubusercontent.com/u/6060224?v=3","gravatar_id":"","url":"https://api.github.com/users/ansonliao","html_url":"https://github.com/ansonliao","followers_url":"https://api.github.com/users/ansonliao/followers","following_url":"https://api.github.com/users/ansonliao/following{/other_user}","gists_url":"https://api.github.com/users/ansonliao/gists{/gist_id}","starred_url":"https://api.github.com/users/ansonliao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansonliao/subscriptions","organizations_url":"https://api.github.com/users/ansonliao/orgs","repos_url":"https://api.github.com/users/ansonliao/repos","events_url":"https://api.github.com/users/ansonliao/events{/privacy}","received_events_url":"https://api.github.com/users/ansonliao/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":4,"created_at":"2016-12-28T08:41:27Z","updated_at":"2016-12-28T17:59:45Z","closed_at":null,"body":"## 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): N/A\r\n* Desktop OS/version used to run Appium: Mac MacOS Sierra, 10.12.2\r\n* Node.js version (unless using Appium.app|exe): 6.5.0\r\n* Mobile platform/version under test: iPhone 6P with iOS 10.2\r\n* Real device or emulator/simulator: Real device\r\n* Appium CLI or Appium.app|exe: Appium CLI\r\n\r\n## Details\r\n\r\nI checkout the latest version of `appium-xcuitest-driver` (vesion: 2.5.0), and completed the setup in `XCode` by selecting `team` and automatically select sign cert., with no problem.\r\n\r\nand then I run the test of `appium-xcuitest-driver` mention by the usage document, the command is: `xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=<udid>' test`\r\n\r\nas the document mention, the last output of this test command run, should be get `Listening on USB`, and it means that all setup is completed.\r\n\r\nbut after I run the test command, the process is stop in below of log, and no `Listening on USB` was got.\r\n\r\ncould you advise how I can fix it?\r\n@imurchie \r\n\r\n```bash\r\n>>>> $ xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=ccf1e887452d914e84d09ae21b501b28a73d4aa2' test\r\n\r\n2016-12-28 16:37:03.165 xcodebuild[16423:325203]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:\r\n/Users/ansonliao/Library/Developer/Xcode/DerivedData/WebDriverAgent-grgmxcxgtxbtdzgaqaryrhbyvtsw/Logs/Test/E8AA9C05-0B73-4893-B151-245E3529FAC4/Session-WebDriverAgentRunner-2016-12-28_163703-0tUjP1.log\r\n2016-12-28 16:37:03.165 xcodebuild[16423:325186] [MT] IDETestOperationsObserverDebug: (CD8BFA6D-37EA-4691-8EBC-EA0A0E4CF25C) Beginning test session WebDriverAgentRunner-CD8BFA6D-37EA-4691-8EBC-EA0A0E4CF25C at 2016-12-28 16:37:03.163 with Xcode 8C1002 on target <DVTiOSDevice: 0x7fb492aadbf0> {\r\n\t\tdeviceSerialNumber:         C39NW0GFG5QV\r\n\t\tidentifier:                 ccf1e887452d914e84d09ae21b501b28a73d4aa2\r\n\t\tdeviceClass:                iPhone\r\n\t\tdeviceName:                 Anson iPhone\r\n\t\tdeviceIdentifier:           ccf1e887452d914e84d09ae21b501b28a73d4aa2\r\n\t\tproductVersion:             10.2\r\n\t\tbuildVersion:               14C92\r\n\t\tdeviceSoftwareVersion:      10.2 (14C92)\r\n\t\tdeviceArchitecture:         arm64\r\n\t\tdeviceTotalCapacity:        58888056832\r\n\t\tdeviceAvailableCapacity:    11614601216\r\n\t\tdeviceIsTransient:          NO\r\n\t\tignored:                    NO\r\n\t\tdeviceIsBusy:               NO\r\n\t\tdeviceIsActivated:          YES\r\n\t\tdeviceActivationState:      Activated\r\n\t\tdeviceType:                 <DVTDeviceType:0x7fb4921af130 Xcode.DeviceType.iPhone>\r\n\t\tsupportedDeviceFamilies:    (\r\n    1\r\n)\r\n\t\tapplications:              (null)\r\n\t\tprovisioningProfiles:      (null)\r\n\t\tactivityProgress:          -2\r\n\t\tactivityTitle:\r\n\t\thasInternalSupport:        NO\r\n\t\tisSupportedOS:             YES\r\n\t\tdeveloperDiskMountError:   (null)\r\n(null)\r\n\t} (10.2 (14C92))\r\n=== BUILD TARGET WebDriverAgentLib OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===\r\n\r\nCheck dependencies\r\n\r\n=== BUILD TARGET WebDriverAgentRunner OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===\r\n\r\nCheck dependencies\r\n\r\nwriteDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/jf/xlj3jzj16xv1j13g2zbsx0lm0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/697d997cfb3a1df93f47fde14485ad9b/ccf1e887452d914e84d09ae21b501b28a73d4aa2/ManifestCache.plist\r\nTest Suite 'All tests' started at 2016-12-28 16:37:29.613\r\nTest Suite 'WebDriverAgentRunner.xctest' started at 2016-12-28 16:37:29.616\r\nTest Suite 'UITestingUITests' started at 2016-12-28 16:37:29.618\r\nTest Case '-[UITestingUITests testRunner]' started.\r\n    t =     0.00s     Start Test at 2016-12-28 16:37:29.623\r\n    t =     0.01s     Set Up\r\n```"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/269514660","html_url":"https://github.com/appium/appium/issues/7619#issuecomment-269514660","issue_url":"https://api.github.com/repos/appium/appium/issues/7619","id":269514660,"user":{"login":"emil-petersen","id":20911136,"avatar_url":"https://avatars.githubusercontent.com/u/20911136?v=3","gravatar_id":"","url":"https://api.github.com/users/emil-petersen","html_url":"https://github.com/emil-petersen","followers_url":"https://api.github.com/users/emil-petersen/followers","following_url":"https://api.github.com/users/emil-petersen/following{/other_user}","gists_url":"https://api.github.com/users/emil-petersen/gists{/gist_id}","starred_url":"https://api.github.com/users/emil-petersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emil-petersen/subscriptions","organizations_url":"https://api.github.com/users/emil-petersen/orgs","repos_url":"https://api.github.com/users/emil-petersen/repos","events_url":"https://api.github.com/users/emil-petersen/events{/privacy}","received_events_url":"https://api.github.com/users/emil-petersen/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T17:59:45Z","updated_at":"2016-12-28T17:59:45Z","body":"@imurchie I believe I resolved that. This is still the output I get: \r\n\r\n```\r\nSERVER:auto_tests USER$ echo $JSON_HEADER\r\n-H \"Content-Type: application/json;charset=UTF-8, accept: application/json\"\r\nSERVER:auto_tests USER$ echo $DEVICE_URL\r\nhttp://localhost:8100\r\nSERVER:auto_tests USER$ echo $JSON_HEADER\r\n-H \"Content-Type: application/json;charset=UTF-8, accept: application/json\"\r\nSERVER:auto_tests USER$ curl -X GET $JSON_HEADER $DEVICE_URL/status\r\ncurl: (6) Could not resolve host: application\r\ncurl: (6) Could not resolve host: accept\r\ncurl: (6) Could not resolve host: application\r\ncurl: (7) Failed to connect to localhost port 8100: Connection refused\r\nSERVER:auto_tests USER$\r\n```"}}
{"actor":{"display_login":"emil-petersen"}}