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-webkit-debug-proxy-launcher.js requires an iOS 10 device to manually open Safari before connecting to it

See original GitHub issue

The problem

iOS Webkit Debug Proxy will not connect to my iOS 10 device when launching the proxy through Appium’s supplied ios-webkit-debug-proxy-launcher.js. Executing node ios-webkit-debug-proxy-launcher.js -c <UDID>:27753 -d outputs RUNNING: ios_webkit_debug_proxy -c <UDID>:27753 -d and there is no more output after that. Once I manually open Safari on my device, then the usual output that shows a device is connected will be appended to stdout. If I run the proxy directly without this Javascript file, e.g. ios_webkit_debug_proxy -c <UDID>:27753 -d, it works fine. If I connect an iOS 9 device and run the proxy the same way as before using the Javascript file, it works fine.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.0
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: Mac 10.11.6
  • Node.js version (unless using Appium.app|exe): 6.9.1
  • Mobile platform/version under test: iOS 10.0.2
  • Real device or emulator/simulator: Real device
  • Appium CLI or Appium.app|exe: Appium CLI

Details

I am on a work computer and am locked out of /usr/bin/env. Therefore, I need to explicitly specify the node command when running the Javascript file. I am not certain what effect this has, if any. I’ve tried removing the shebang line specifying to use node at the top of ios-webkit-debug-proxy-launcher.js but that did not help.

Link to Appium logs

Part of the problem is I’m not receiving any logs.

Code To Reproduce Issue [ Good To Have ]

node ios-webkit-debug-proxy-launcher.js -c <UDID>:27753 -d

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, Oct 27, 2016

The issue with running node main.js is that the file you want to run is the transpiled version, which is build/lib/main.js.

0reactions
lock[bot]commented, Apr 28, 2019

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

If Safari isn't loading websites or quits on your iPhone, iPad, or ...
If you can't load a website or webpage, or Safari quits unexpectedly, follow these steps. Connect to a different network. Try to load...
Read more >
If you can't update or restore your iPhone or iPod touch
You can put your iOS device in recovery mode, then restore it using your computer.
Read more >
Using USB accessories with iOS and iPadOS - Apple Support
In Settings, go to Face ID & Passcode or Touch ID & Passcode, and turn on USB Accessories under Allow Access When Locked....
Read more >
Use Quick Start to transfer data to a new iPhone or iPad
Set up your new iOS device automatically using an iPhone or iPad. ... need to wait for the transfer to complete on both...
Read more >
Set up your iPhone or iPad - Apple Support
A new iPhone showing the Quick Start screen. The instructions advise you to bring your. Activate your iPhone or iPad. You need to...
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