# Unable to launch safari on real device using appium

**URL:** <https://discuss.appium.io/t/unable-to-launch-safari-on-real-device-using-appium/10706>\
**Category:** Issues/Bugs\
**Created:** [June 14, 2016, 7:11am UTC](https://discuss.appium.io/t/unable-to-launch-safari-on-real-device-using-appium/10706 "2016-06-14T07:11:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GPSR\_Sivanandareddy](https://discuss.appium.io/letter_avatar_proxy/v4/letter/g/ea666f/32.png) [@GPSR\_Sivanandareddy](https://discuss.appium.io/u/GPSR_Sivanandareddy)\
**Post date:** [June 14, 2016, 7:11am UTC](https://discuss.appium.io/t/unable-to-launch-safari-on-real-device-using-appium/10706/1 "2016-06-14T07:11:46Z")

</div>

we are using following capabilities and  
xcode 7.3,  
appium 1.5.3,  
iphone 9.3.2,  
iphone 6,  
mac 10.11.4  
capabilities.setCapability(MobileCapabilityType.PLATFORM\_NAME, “iOS”);  
capabilities.setCapability(MobileCapabilityType.DEVICE\_NAME, “VBS’s iPhone”);  
capabilities.setCapability(MobileCapabilityType.PLATFORM\_VERSION, “9.3”);  
capabilities.setCapability(MobileCapabilityType.UDID, “4a7dd4dedca3b7d0f780e4827b27e91fcfe22f1d”);  
capabilities.setCapability(MobileCapabilityType.BROWSER\_NAME, “Safari”);

Error is : [TestNG] Running:  
/private/var/folders/py/kgvfbnsd4dl8xvx3nktsh6p00000gn/T/testng-eclipse–1412160919/testng-customsuite.xml

close  
Method = closeBrowser() = \*_No Browser to Close_  
FAILED: EB\_New\_Used\_Ship\_Credit  
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Bad app: /Applications/Appium.app/Contents/Resources/node\_modules/appium/node\_modules/appium-ios-driver/build/SafariLauncher/SafariLauncher.app. App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name. (WARNING: The server did not provide any stacktrace information)  
Command duration or timeout: 183 milliseconds  
Build info: version: ‘2.51.0’, revision: ‘1af067dbcaedd7d2ab9af5151fc471d363d97193’, time: ‘2016-02-05 11:20:57’  
System info: host: ‘[vbs-chd-nb96.vserv-it.com](http://vbs-chd-nb96.vserv-it.com)’, ip: ‘172.17.3.98’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.11.4’, java.version: ‘1.8.0\_60’  
Driver info: io.appium.java\_client.ios.IOSDriver  
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)  
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)  
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)  
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)  
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.ios.IOSDriver.execute(IOSDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:37)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:161)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:170)  
at io.appium.java\_client.ios.IOSDriver.(IOSDriver.java:57)  
at BusinessRules.Core.Launch\_Browser(Core.java:86)  
at com.eFollett.Smoke\_Test.Opt\_Critical\_Test\_01.EB\_New\_Used\_Ship\_Credit(Opt\_Critical\_Test\_01.java:53)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:497)  
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)  
at org.testng.internal.Invoker.invokeMethod(Invoker.java:645)  
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:822)  
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1130)  
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)  
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)  
at org.testng.TestRunner.privateRun(TestRunner.java:782)  
at org.testng.TestRunner.run(TestRunner.java:632)  
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)  
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)  
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)  
at org.testng.SuiteRunner.run(SuiteRunner.java:268)  
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)  
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)  
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)  
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)  
at org.testng.TestNG.run(TestNG.java:1064)  
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:113)  
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:206)  
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:177)

# =============================================== Default test Tests run: 1, Failures: 1, Skips: 0

# =============================================== Default suite Total tests run: 1, Failures: 1, Skips: 0

[TestNG] Time taken by BusinessRules.Report@42d80b78: 7 ms  
[TestNG] Time taken by org.testng.reporters.jq.Main@77afea7d: 23 ms  
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@3339ad8e: 3 ms  
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@3cd1f1c8: 4 ms  
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@75828a0f: 6 ms  
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 4 ms  
[TestNG] Time taken by org.testng.reporters.XMLReporter@5679c6c6: 4 ms

---

<div class="post-metadata">

**Author:** ![email2vimalraj](https://discuss.appium.io/user_avatar/discuss.appium.io/email2vimalraj/32/1665_2.png) [@email2vimalraj](https://discuss.appium.io/u/email2vimalraj)\
**Post date:** [June 14, 2016, 11:52am UTC](https://discuss.appium.io/t/unable-to-launch-safari-on-real-device-using-appium/10706/2 "2016-06-14T11:52:19Z")

</div>

I see you are missing SafariLauncher.app file to launch the safari in real iOS device. Try to follow the steps as documented here:

> [@Mobile Web automation on iOS real device – Safari](https://discuss.appium.io/t/mobile-web-automation-on-ios-real-device-safari/4900):
>
> As there are a lot of us facing issues with Safari browser automation, I wanted to document the steps that help the members to do the browser automation. Pre-requisites: a. Xcode installed on Mac OS X. b. Device added to Apple developer program c. Get SafariLauncher.app([https://github.com/budhash/SafariLauncher](https://github.com/budhash/SafariLauncher)) d. Launch the SafariLauncher.app on connected device from Xcode. e. Install appium (IDE) f. Download appium from github ([https://github.com/appium/appium](https://github.com/appium/appium)) g. Install ios-webki…
