{"action":"created","issue":{"url":"https://api.github.com/repos/appium/ruby_lib/issues/342","labels_url":"https://api.github.com/repos/appium/ruby_lib/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/appium/ruby_lib/issues/342/comments","events_url":"https://api.github.com/repos/appium/ruby_lib/issues/342/events","html_url":"https://github.com/appium/ruby_lib/issues/342","id":87408359,"number":342,"title":"Unable to run on a real IOS device","user":{"login":"chris1248","id":2918666,"avatar_url":"https://avatars.githubusercontent.com/u/2918666?v=3","gravatar_id":"","url":"https://api.github.com/users/chris1248","html_url":"https://github.com/chris1248","followers_url":"https://api.github.com/users/chris1248/followers","following_url":"https://api.github.com/users/chris1248/following{/other_user}","gists_url":"https://api.github.com/users/chris1248/gists{/gist_id}","starred_url":"https://api.github.com/users/chris1248/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris1248/subscriptions","organizations_url":"https://api.github.com/users/chris1248/orgs","repos_url":"https://api.github.com/users/chris1248/repos","events_url":"https://api.github.com/users/chris1248/events{/privacy}","received_events_url":"https://api.github.com/users/chris1248/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-11T16:40:25Z","updated_at":"2015-06-11T19:28:47Z","closed_at":"2015-06-11T19:28:47Z","body":"problem:\r\n\r\nI am unable to get a script, running this poorly documented appium lib, to connect through appium to a real IOS device.\r\n\r\nbackground:\r\n[mac os x Yosemite]\r\n[Appium 1.3.7]\r\n\r\nI can successfully run the following script on an IOS simulator:\r\n\r\n    require 'appium_lib'\r\n    desired_caps = {\r\n      caps:       {\r\n        platformName: 'iOS',\r\n        platformVersion: '8.3',\r\n        deviceName:    'iPhone 6 Plus',\r\n        browserName:   'Safari',\r\n          }\r\n    }\r\n\r\n    # Start the driver\r\n    driver = Appium::Driver.new(desired_caps)\r\n    driver = driver.start_driver\r\n\r\n    driver.get(\"http://www.google.com\")\r\n\r\n    element = driver.find_element(:name, 'q')\r\n    element.send_keys \"Selenium Stuff\"\r\n    element.submit\r\n    sleep 5\r\n    driver.quit\r\n\r\nBut I want to get it to run on a **real** device.\r\n\r\nWhen I start up Appium (with safarilauncher), and connected to my IPad Air, I get this exception:\r\n\r\n**.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/appium_lib-6.0.0/lib/appium_lib/driver.rb:485:in `rescue in start_driver': ERROR: Unable to connect to Appium. Is the server running? (RuntimeError)`**\r\n\r\nFor Appium, which I'm running using the GUI, I have the following settings:\r\n\r\nLaunching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' lib/server/main.js --address \"10.0.20.137\" --command-timeout \"7200\" --session-override --pre-launch --platform-version \"8.3\" --platform-name \"iOS\" --app \"com.bridgemobile.testing\" --udid \"4d18922f629a81be51e746619cb33f81570f9572\" --backend-retries \"3\" --default-device --launch-timeout \"90000\"\r\n\r\nSo of course my server is running, I can see in Appium that it spit out tons of information messages in the appium window and such. But this ruby library seems to be not be able to find it.\r\n\r\nWhy?"},"comment":{"url":"https://api.github.com/repos/appium/ruby_lib/issues/comments/111253601","html_url":"https://github.com/appium/ruby_lib/issues/342#issuecomment-111253601","issue_url":"https://api.github.com/repos/appium/ruby_lib/issues/342","id":111253601,"user":{"login":"chris1248","id":2918666,"avatar_url":"https://avatars.githubusercontent.com/u/2918666?v=3","gravatar_id":"","url":"https://api.github.com/users/chris1248","html_url":"https://github.com/chris1248","followers_url":"https://api.github.com/users/chris1248/followers","following_url":"https://api.github.com/users/chris1248/following{/other_user}","gists_url":"https://api.github.com/users/chris1248/gists{/gist_id}","starred_url":"https://api.github.com/users/chris1248/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris1248/subscriptions","organizations_url":"https://api.github.com/users/chris1248/orgs","repos_url":"https://api.github.com/users/chris1248/repos","events_url":"https://api.github.com/users/chris1248/events{/privacy}","received_events_url":"https://api.github.com/users/chris1248/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T19:28:47Z","updated_at":"2015-06-11T19:28:47Z","body":" decided to not use the SafariLauncher I had previously built and put on my ipad. But instead I wanted to use the safarilauncher that came with the source code, and was built by the ./reset.sh script. \r\nSo I took out the argument for --app, and specified --safari instead. Here is my command line:\r\n\r\nnode lib/server/main.js --command-timeout \"7200\" --session-override --pre-launch --platform-version \"8.3\" --platform-name \"iOS\" --udid \"4d18922f629a81be51e746619cb33f81570f9572\"  --safari\r\n\r\nOnce I did that, I was **successful** in running my script on the real device. \\o/"}}