iOS - Failed to launch safari - real device
See original GitHub issueThe 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:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
@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
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.