Hi everyone,
I was going through the issue logged in this forum for automation the safari browser on real device, as i was also facing same issue. Finally i'm able to automate safari browser.
Config: Appium 1.5.0-beta8+Xcode7.1(&B91b)
These are the device devices used:
1. iPhone 6 Plus - iOS 8.2(12D508) - works fine.
2. iPhone 6 - iOS 9.1(13B143) - works fine
3. iPhone 5 - iOS 8.1.3(12B466) - works fine
4. iPhone 5 - iOS 8.1(12B411) - works fine
5. iPhone 4 - iOS 7.1.2(11D257) - works fine
6. iPhone 4 - iOS 6.0.1(10A523) - works fine
Things you should absolutely do not forget while automating safari browser
1. Enable UiAutomation in required device.
2. Enable Web inspector for safari in settings.
3. Start the ios_webkit_debug_proxy from terminal with ios_webkit_debug_proxy -c <UDID>:27753 -d
4. Start appium server appium --safari
Sample java code here
P.S. Thanks @Priyank_Shah,@Mani_Maran_Chandraba for the help.