-
-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: document how to connect an iPhone to a macOS virtual machine #468
Comments
Hello there 👋 In the meantime you might want to join the Wimpys World Discord 🗣 where we have a large community of Linux 🐧 enthusiasts and passionate open source developers 🧑💻 You might also be interested in following Wimpys World Twitch 📡 channel where Wimpy streams let's code video, including this project, several times a week. A back catalog of past live stream and other Linux related content is available on Wimpys World YouTube 📺 channel. |
Any progress on that? |
It would be good to see a definitive solution for this issue added to the documentation 🙂 |
@flexiondotorg have you seen that it requires a modification in quickemu script by adding this option : |
This is the only solution that works for me: https://github.com/sickcodes/Docker-OSX/tree/bb1e9929163bc515dd06a68fd92a54f06140dd8d#usbfluxd-iphone-usb---network-style-passthrough-osx-kvm-docker-osx |
Merci. It works for me :) |
Hello, the solution above doesn't work for me. After I connect the iPhone, I get the message where I can choose "trust the computer" or I "don't trust the computer". I tried to use spice but not I get the error: usb_redirection error libusb_error_not_found It worked one time and only one time with that solution from chatgpt. I can't reproduce it. With lsusb I can see, that the iPhone is disconnecting and reconnecting very often. The device number is rising and the error-message, mentioned above, reopens every few seconds. This is because the option in spice "auto redirect newly plugged in USB devices. This is my config: Thanks for the mentioned solution above. I hope to find a solution for this problem and I am thankfull for every anwser. |
@SiBurgmaier Yeah, it worked for me only once, so I ended up buying 2018 mac mini instead just to get the initial ios development stages done. |
My solution for GTK/SPICE config:
Run this bash script on host #!/bin/bash
SESSION_NAME="USBSetup"
# Kill the existing tmux session with the name "USBSetup", if it exists
tmux has-session -t $SESSION_NAME 2>/dev/null
if [ $? -eq 0 ]; then
echo "Session $SESSION_NAME exists, killing it."
tmux kill-session -t $SESSION_NAME
fi
# Start a new tmux session but don't attach yet
tmux new-session -d -s $SESSION_NAME
# Split the window into three panes
tmux split-window -h -t $SESSION_NAME
tmux split-window -v -t $SESSION_NAME
# Send commands to panes. Ensure to use 'C-m' at the end to simulate Enter.
tmux send-keys -t $SESSION_NAME:0.0 'sudo systemctl start usbmuxd && sudo avahi-daemon'
tmux send-keys -t $SESSION_NAME:0.1 'sudo systemctl restart usbmuxd && sudo socat tcp-listen:5000,fork unix-connect:/var/run/usbmuxd'
tmux send-keys -t $SESSION_NAME:0.2 'sudo usbfluxd -f -n'
# Attach to the session
tmux attach -t $SESSION_NAME Run this inside VM (it might also be run with SSH, so experiment.) security unlock-keychain
sudo launchctl start usbmuxd
sudo usbfluxd -f -r 10.0.2.2:5000 You can specify display in config or in command: |
Hi everyone.
French here, sorry I'll do my best with English
Manajro (latest) + Gnome, on HP laptop, 3 USB port on the same bus.
It's quite strange because three days before, I installed Quickemu, Mac OS , and I was amazingly surprised that at first run, plugging my Iphone 8 made it instantly recognizes into the VM.
I mean..the goal you know, Xcode, flutter, etc...Why the hell would we need MacOS VM for anything else ? But after hours of investigations I found no solution why it disappeared.
After having struggled with the display mode (BTW: with default mode, the area into which the mouse can mouve is smaller that the displayed screen) for which I made so many operations until I undertook that the best is to use "gtk" or "spice", it became impossible to get this f** iphone back into the VM.
Three methods :
No config, gtk display
Terminal repeatedly says ...
Host redirection, gtk display with usb_devices=("05ac:12a8")
Terminal repeatedly says ...
I see that I have on my hp popup notifications, like Manjaro is trying the re-hotplug the device. Impossible to find any simple solution to disable the service which as a kind of "fenix" mode...not sure which one, but it sounds to be usbmuxd
(libimobiledevice/usbmuxd#110)
spice
![image](https://user-images.githubusercontent.com/61077647/167517367-76bcf616-773d-4c54-981b-ba7872de854b.png)
Investigated docs without any success:
Also failed:
And may others...
==> Note also that quitting Spice window doesn't remove the process macos-catalina that has to me manually killed.
[EDIT, 1 day after]
I manage to understand that "my"rules where not in etc/udev/rules.d but in usr/lib/udev/rules.d (who can like linux for this recurrent problem...we never know where are the used files...anyway)
So after commenting all rules in 39-usbmux.rules, I face a new dialog box (in spice mode)
Conclusion
At the end some ppl says that it's impossible.
Did I dream when I saw the iphone appearing first time ?
Thanks for your help
[FINAL EDIT - SOLUTION FOR DESPERATE PPL who like me spent 48h finding the fix]
ALTHOUGH I'm not sure it will work in "headless mode" (which is the goal) since it may be using "spice" ???
Keep going...
NOTE: no solution found for "spice mode"
Note that doing this, you're iphone's content won't be accessible through whatever your use for file explorer (e.g. nautilus)... You can't have all you want, make your choice... ;-)
Remove if exist (gnome users only I think) : gvfs-gphoto2
in the macos-catalina.conf
the file should look like :
USB_PASSTHROUGH="${USB_PASSTHROUGH} -device usb-host,bus=hostpass.0,vendorid=0x${VENDOR_ID},productid=0x${PRODUCT_ID},guest-reset=false
Hope it'll help someone.
The text was updated successfully, but these errors were encountered: