Here is my real device setup that worked with the appium version 1.2.4 (Ruby 2.1.1):
{
'platformName' => 'iOS',
'platformVersion' => '7.1',
'udid' => '<device udid>',
'deviceName' => 'Nathan-iPad3',
'app' => '../appium/build/SafariLauncher/SafariLauncher.zip',
'autoAcceptAlerts' => 'true',
'autoWebView' => 'true'
}
server_url = 'http://localhost:4723/wd/hub/'
client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 300
@driver = Selenium::WebDriver.for(:remote, :http_client => client, :desired_capabilities => capabilities, :url => server_url)
@browser = Watir::Browser.new(@driver)```
Now I get this error whenever the first step attempts to run (using the new master source 1.3.0-beta1):
```Not implemented in this context, try switching into or out of a web view (Selenium::WebDriver::Error::UnknownError)```
As a side note, I have also started to see this error in the appium logs, but it doesn't stop the progress completely:
```info: [debug] [INST STDERR] 2014-10-15 17:27:41.109 instruments[69831:1307] WebKit Threading Violation - initial use of WebKit from a secondary thread.```