Closed sepsky closed 6 months ago
Same thing happens here, haven’t find a solution.
no not me either. I've tried both wireless (ATV) and lan. Getting the same error every time.
I've tried both:
apt-get
I have a strong feeling this is because my socket setup and config could be the culprit, but I don't know where to look / What to look. I've been looking into the original usbmuxd
to see how that works.
One thing I have managed to do, I've managed to pair with an iPad using cabled connection, similar to what usbmuxd
does.
How have you setup your sockets?
I havn't dive into the code, just compile all the libimobiledevice sutff and libplist etc etc my own and try to do a backup over internet. I have the same feeling on it that I mis-configured something.
Will get back to you if I found something worth sharing :)
OK thanks for that. I've been looking into the sockets and dbus configuration, given that Avahi
uses the dbus.
I'll also update with anything I come across. 👍 :)
Hey @Lakr233 found anything?
I've been looking around, and stumbled upon a few threads and issues indirectly related to this (I think).
So a lot of people complained about libplist
and libplist++
causing problems with some tools that comes with libimobiledevice
.
I wonder if we have the same issue, because when I put a lot of logs in usbmuxd2/usbmuxd2/Client.cpp
for what we pass to recv_data
and readData
methods, I was receiving some bytes (different values). I wonder (🤔) if the reason Client.cpp thinks we don't have any connection (or connection was refused) is because we receive response about discovered devices in plist format, but because libelist isn't configured properly (even though I can run plistutil
fine), we can't read what we receive, and thus failing.
I've been trying to compile and install libplist
manually, although not with much success because of the pesky:
./configure: line 12782: syntax error near unexpected token `libplist,'
./configure: line 12782: `PKG_CHECK_MODULES(libplist, libplist-2.0 >= $LIBPLIST_VERSION)'
I'm fixing this at the moment, will update.
Hi, I'm currently doing a different approach to get workaround for usbmuxd2 doing my side project. Here is a script for you to take reference if you need it. It's for macOS but should do the job on Linux with a tiny modification I guess.
https://github.com/Lakr233/AppleMobileDevice/blob/main/Resource/Automation/build.sh
Looking forward on your progress. I have asked around and looks like somebody got it work.
Hi @Lakr233
Thanks for the message and the script. Yeah ok great, I'll go through the script and use it to setup the dependencies etc.
I tried the approach here: https://www.numerousnetworks.co.uk/guides/untether-ios-step-by-step/ I didn't install libplist
from apt-get
, and had to make some changes to the code to fix a duplicate declaration, as well as the other PLIST_FORMAT
issue circulating in the issues.
But this also doesn't work. No device is found. I also used the trick they said, to connect the device first using USB to pair, and then detach. However, when I detach, even though a record of the UDID and the item is showing, I can't connect to the device.
That's great news someone else has got it working. I also read that some other people had managed to fix it, but that was in September 2022.
I really think it's just a dependency issue, and one (or some) of the dependencies aren't working well with others. But I'll try your script and will update with the outcome.
Code has undergone a major rewrite since this issue was created.
Hi, when I try to list devices available to my Raspberry pi (there is an Apple TV 4th gen on the network, and I can confirm it's available on my wifi using another tool (
pyATV
, usingatvremote
command).I've got idevice_id version of
1.3.0-190-g6fc41f5
and successfully installedusbmuxd2
. This is what I get when runusbmuxd -V
:One thing I've noticed, even when I have usbmuxd running, with the below information:
I get this when I run
service usbmuxd status
:I am getting the
failed to recv_data on client X with error=client X disconnected! code=6750218
(X increments everytime I runidevice_id --list
, or any of its variation)Is there anything we need to do with the client? I read somewhere that this might be an issue with
Avahi-Client
, but my Avahi is running ok, and I can confirm that when I do :Thanks a lot and if we need any more information, please let me know and I'll find and provide it.