Hi,
I was trying to get a mac to mac setup to forward an iPhone, mostly for remote debugging/development.
I got the iPhone showing once or twice in the remote machine (both in finder and in xCode), but always after several connect/disconnect attemps...
Even tried in different mac machines, to confirm that it wasn't an issue with my main one, but always the same behaviour, the iPhone disappears from the host machine and shows as "in use by you" in the remote one.
Here are some screenshots of what shows in both sides: https://imgur.com/a/QMQk0Px
I read some other posts from this forum, even tried with the onReset setting, but without major success (it worked without the setting, but can't be sure if it ever worked with the setting).
Tried with 2 machines with macOS 15.4 and 1 with macOS 14.4.
iPhone is at iOS 18.3.1
Any suggestion or anything that I'm missing to get this to a working state?
Thanks
.
I gave it a test and yes i see the problem. It seems like apple installed another service for iOS18 and that is disrupting the redirection. (It works fine with a linux server & mac Client)
I will investigate further and post here when there is more information...
.
Oh... Apple being apple 😅
It's nice to know that it works with a linux server and a mac client.
I tried that, because using an ubuntu server would probably be my prefered way to use this setup, but from what I read in the forums, it wan't that really well supported.
I think that in my test, with the iPhone connected to a ubuntu 24.04 server, the device was showing in the client mac, but it wouldn't connect... but I can give it another try! Probably in a clean ubuntu install, because the machine that I used to test, already had some usbmuxd things installed, that might cause conflicts?
Either way, I'll also wait for more information about the mac to mac setup! 😀
Thanks
.
Yes usbmuxd does cause conflicts. Its best not to run it (on Linux) if its being the server. For MacOS , the virtualhere server will automatically stop the com.apple.usbmuxd service and that allows it to work. I notice there was a big "download" that MacOS said i had to download to use the iPad (im testing with that) 18.3 and then that caused it not to pass through. My guess is this new download, installed another launchctl daemon which works together with usbmuxd to interact with the iDevice. Im hoping i can determine what that new daemon is and disable it and passthrough works again...
.
I have submitted a bugreport to Apple and will update here if they respond...
.
I gave the server in ubuntu a test, in a clean instance, to prevent having anything conflicting, like the usbmuxd that I had before and partially got success with the iPhone showing both in finder and xCode in my macbook.
The first connection attempt was very fast and disconnected right away, then I connected again and after a few seconds, the device would show up, but if I disconnected and connected again, the device wouldn't appear anymore until physically unplugged and plugged back in to the linux machine. Tried several times and always got that behavior...
The server logs didn't show much: https://imgur.com/a/MxNGR4b
.
On Ubuntu do this:
sudo apt remove usbmuxd
sudo systemctl stop virtualhere
nano /usr/local/etc/virtualhere/config.ini
add the line
ClaimPorts=1
save the config.ini file and reboot.
That fixed it for me. (Note i still had to use the iPad twice to connect). I also had to accept a few "Trust Computer" prompts on the iPad. One for ubuntu on one for my Mac when the iPad was passed through.
.
Gave it a try and seems like
ClaimPorts=1
did the trick!usbmuxd wasn't installed, because it was a clean install, but yeah, thanks for the tip.
I'll also wait on feedback about mac-to-mac, because I'm still not really sure how I want to handle things for the project that I need this for, but is good to know that linux-to-mac is a working thing ;)
Thank you!