{"action":"closed","issue":{"url":"https://api.github.com/repos/calabash/calabash-ios/issues/1334","repository_url":"https://api.github.com/repos/calabash/calabash-ios","labels_url":"https://api.github.com/repos/calabash/calabash-ios/issues/1334/labels{/name}","comments_url":"https://api.github.com/repos/calabash/calabash-ios/issues/1334/comments","events_url":"https://api.github.com/repos/calabash/calabash-ios/issues/1334/events","html_url":"https://github.com/calabash/calabash-ios/issues/1334","id":260434529,"number":1334,"title":"Could not connect to DeviceAgent on real iOS device","user":{"login":"cmdshepard","id":16440838,"avatar_url":"https://avatars2.githubusercontent.com/u/16440838?v=4","gravatar_id":"","url":"https://api.github.com/users/cmdshepard","html_url":"https://github.com/cmdshepard","followers_url":"https://api.github.com/users/cmdshepard/followers","following_url":"https://api.github.com/users/cmdshepard/following{/other_user}","gists_url":"https://api.github.com/users/cmdshepard/gists{/gist_id}","starred_url":"https://api.github.com/users/cmdshepard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmdshepard/subscriptions","organizations_url":"https://api.github.com/users/cmdshepard/orgs","repos_url":"https://api.github.com/users/cmdshepard/repos","events_url":"https://api.github.com/users/cmdshepard/events{/privacy}","received_events_url":"https://api.github.com/users/cmdshepard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-25T22:29:17Z","updated_at":"2017-11-29T07:52:05Z","closed_at":"2017-11-29T07:52:05Z","author_association":"NONE","body":"**xcode installation location** `/Applications/Xcode.app/Contents/Developer`\r\n\r\n**xcode version** `8.3.3`\r\n\r\n**calabash version** `0.21.1`\r\n\r\n**calabash server**\r\n```javascript\r\n{\r\n   \"outcome\":\"SUCCESS\",\r\n   \"ios_version\":\"10.3.3\",\r\n   \"app_id\":\"ee.food.FleetFox\",\r\n   \"app_name\":\"FleetFox\",\r\n   \"app_base_sdk\":\"iphoneos10.3\",\r\n   \"git\":{\r\n      \"remote_origin\":\"git@github.com:calabash\\/calabash-ios-server.git\",\r\n      \"branch\":\"develop\",\r\n      \"revision\":\"37d1c74\"\r\n   },\r\n   \"iOS_version\":\"10.3.3\",\r\n   \"simulator_device\":\"\",\r\n   \"version\":\"0.21.1\",\r\n   \"server_port\":37265,\r\n   \"model_identifier\":\"iPhone5,1\",\r\n   \"form_factor\":\"iphone 4in\",\r\n   \"app_version\":\"2.0\",\r\n   \"simulator\":\"\",\r\n   \"4inch\":true,\r\n   \"iphone_app_emulated_on_ipad\":false,\r\n   \"device_family\":\"iPhone\",\r\n   \"screen_dimensions\":{\r\n      \"scale\":2,\r\n      \"width\":640,\r\n      \"native_scale\":2,\r\n      \"sample\":1,\r\n      \"height\":1136\r\n   },\r\n   \"short_version_string\":\"2.0\",\r\n   \"system\":\"iPhone5,1\",\r\n   \"device_name\":\"TestIphone5\"\r\n}\r\n```\r\n\r\nI am using rbenv (ruby 2.3.1)\r\nI'm running the following command:\r\n```\r\n$ BUNDLE_ID=ee.food.FleetFox \\\r\nDEVICE_TARGET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx \\\r\nDEVICE_ENDPOINT=http://x.x.x.x:37265 \\\r\nbundle exec calabash-ios console\r\n```\r\n\r\nGetting this\r\n```\r\nRunning irb...\r\n\r\n#########################  Useful Methods  ##########################\r\n     ids => List all the visible accessibility ids.\r\n  labels => List all the visible accessibility labels.\r\n    text => List all the visible texts.\r\n   marks => List all the visible marks.\r\n    tree => The app's visible view hierarchy.\r\n   flash => flash(<query>); Disco effect for views matching <query>\r\n verbose => Turn debug logging on.\r\n   quiet => Turn debug logging off.\r\n    copy => Copy console commands to clipboard.\r\n   clear => Clear the console.\r\n\r\nCalabash says, \"Take a deep breath.\"\r\ncalabash-ios 0.21.1> start_test_server_in_background\r\nRuntimeError: \r\n\r\nCould not connect to the DeviceAgent service.\r\n\r\ndevice: #<Device: TestIphone5 (10.3.3) 2927cc7166cea7400ada3509f6e75942af2aff83>\r\n   url: http://10.0.11.164:27753/\r\n\r\nTo diagnose the problem tail the launcher log file:\r\n\r\n$ tail -1000 -F /Users/mazahmadi/.calabash/iOSDeviceManager/logs/current.log\r\n\r\n\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.1/lib/run_loop/device_agent/client.rb:1389:in `rescue in launch_cbx_runner'\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.1/lib/run_loop/device_agent/client.rb:1380:in `launch_cbx_runner'\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.1/lib/run_loop/device_agent/client.rb:292:in `launch'\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.1/lib/run_loop/device_agent/client.rb:167:in `run'\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.1/lib/run_loop.rb:113:in `run'\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.1/lib/calabash-cucumber/launcher.rb:414:in `block in new_run_loop'\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.1/lib/calabash-cucumber/launcher.rb:412:in `times'\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.1/lib/calabash-cucumber/launcher.rb:412:in `new_run_loop'\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.1/lib/calabash-cucumber/launcher.rb:365:in `relaunch'\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.1/lib/calabash-cucumber/core.rb:1567:in `start_test_server_in_background'\r\n\tfrom (irb):1\r\n\tfrom /Users/mazahmadi/.rbenv/versions/2.3.1/bin/irb:11:in `<main>'\r\n```\r\n\r\nThe device and my computer are on the same wifi network. I can access `http://device_ip:37265/version` from my browser."}}
{"actor":{"display_login":"cmdshepard"}}