question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS - Failed to launch safari - real device

See original GitHub issue

The problem

Enqueue Failure: Failed to launch com.apple.mobilesafari: The operation couldn’t be completed. Application “com.apple.mobilesafari” is installing or uninstalling, and cannot be launched.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.8.1
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: macOS High Sierra
  • Node.js version (unless using Appium.app|exe): 5.6.0
  • Mobile platform/version under test: 11.0.3 (15A432)
  • Real device or emulator/simulator: real
  • Appium CLI or Appium.app|exe: cli

Details

Cannot create appium session

Link to Appium logs

[GIST](“https://gist.github.com/pavkr/33ba4787e6e12fd45ff389ad6e9b5df7.js

Code To Reproduce Issue [ Good To Have ]

` var capabilities = new DesiredCapabilities(); capabilities.SetCapability(“xcodeOrgId”, (string)doc.capabilities[0].xcodeOrgId); capabilities.SetCapability(“xcodeSigningId”, (string)doc.capabilities[0].xcodeSigningId); capabilities.SetCapability(“reportDirectory”, (string)doc.capabilities[0].reportDirectory); capabilities.SetCapability(“reportFormat”, (string)doc.capabilities[0].reportFormat); capabilities.SetCapability(“testName”, (string)doc.capabilities[0].testName); capabilities.SetCapability(“automationName”, (string)doc.capabilities[0].automationName); capabilities.SetCapability(“newCommandTimeout”, 200); capabilities.SetCapability(“udid”, (string)(doc.capabilities[0].deviceName)); capabilities.SetCapability(“deviceName”, (string)doc.capabilities[0].deviceName); capabilities.SetCapability(“fullReset”, “false”); capabilities.SetCapability(“webkitResponseTimeout”, 20000); capabilities.SetCapability(CapabilityType.BrowserName, MobileBrowserType.Safari); capabilities.SetCapability(CapabilityType.Platform, MobilePlatform.IOS); capabilities.SetCapability(CapabilityType.IsJavaScriptEnabled(string)doc.capabilities[0].javascriptEnable); capabilities.SetCapability(“bundleId”, (string)doc.capabilities[0].bundleId);

return new IOSDriver<RemoteWebElement>(new Uri(Hosts.Grid), capabilities, new TimeSpan(0, 0, 50)); `

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
saikrishna321commented, Jul 3, 2018

@pavkr its hard to help with server logs. Please provide logs.

Make sure you remove the bundleID capability and make sure you have ios-webkit-debug-proxy running

0reactions
lock[bot]commented, Jan 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mobile Web Inspector doesn't work with Safari 13
Problem : 1 - Device is not shown in Safari when iOS device is connected and opened on a Safari Page. 2 -...
Read more >
Unable to launch safari in real device - Appium Discuss
Unable to launch safari in real device ... 2016-09-16 15:23:32:459 - [MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“ ...
Read more >
Safari browser not launch on real device using appium
I was trying to launch safari browser on real device(iPhone 4) using appium . but it is giving following error.
Read more >
Can't open a web app on iOS - Intune - Microsoft Learn
This article fixes an issue in which you can't open a web app on an iOS device, and receive the error message: Safari...
Read more >
Running mobile safari tests on real device - appium v0.6.0
I tried executing a very simple test on an iPad mini but it failed with an error ... In order to start using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found