'idevicedebugserverproxy: Immediate debugserver connection closed

after solving my previous problem in Unable to mount a developer disk image. iOS 15.4.1 - Xcode 13.3.1 (13E500a) , I encountered a new one.

As mentioned in my previous problem, I manually built the latest version of libplist, usbmuxd, libimobiledevice, ideviceinstaller, libusbmuxd from github and was finally able to mount developer disk image on the tested phone.

I then retried to do remote debug by:

idevicedebugserverproxy -d 9999

and tried to connect in lldb by:

process connect connect://localhost:9999

but I received immediate debugserver connection closed error:

% idevicedebugserverproxy -d 9999
main: Handling new client connection...
main: Waiting for connection on local port 9999
connection_handler: client_fd = 4
debugserver connection closed
connection_handler: shutting down...

I also tried to do the everything same on my ubuntu virtual machine and it worked, by in macOS this problem still remains, any suggestions?

iOS: 15.4.1 , Xcode: 13.3.1 (13E500a), macOS: 12.3.1 (21E258) idevicedebugserverproxy: 1.3.0-155-gdec0438 ,

lldb-1316.0.9.41: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source