-
Notifications
You must be signed in to change notification settings - Fork 18
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
xcode and usb iphone passthrough #25
Comments
NB: Big scare while updating iphone ios from mac os x finder. The phone remained unusable and blocked in restore mode.
|
Thank you for posting your solution here. Linked it in the README |
I find relevant to post also an issue i had while connecting an iphone with Ubuntu 22.04 as host. Following the top tutorial, the iphone connects perfectly and is detected by the vm, but when issuing the update required by mac: "A software update is required to connect to iPhone", it was no longer able to connect the iphone to the VM. Also, QEMU was continuously throwing this errors:
By a little of search, i can figure out that my host machine was somehow blocking the device. This is because the drivers from the host machine, claims the device before it is forwarded to the VM. Making an
As you can see, in the iphone case, it detects several interfaces for a single device, each interface may load a different driver. Is important to unbind every driver from the device to make QEMU forward it properly. In my personal case, when hot plugging my device to the VM, the
|
When I tried @rawlines command it gave me this output:
So, what I did to find the correct identifier for my connected iPhone was typing |
Is anyone having trouble redirecting the USB port to communicate with the iPhone on Sonoma? |
No idea, personally, I'm stuck in Ventura and I didn't find a way to bypass the security disk to allow the Sonoma upgrade. |
I assume that you have read all the thread, to make it short. |
Hi @tombombadilom, I'm using this package to virtualize macOS: https://oneclick-macos-simple-kvm.notaperson535.is-a.dev/ |
The problem is that Sonoma requires qemu-xhci. |
How to add an iphone to use with xcode
Références:
https://stackoverflow.com/questions/67279997/connect-iphone-via-usb-to-sosumi-qemu
sickcodes/Docker-OSX#133
Define usb port to be usb passthrough
it is easier to select a usb bus where your iphone is single but in case you can't follow the udev rules
plug your iphone to usb
Since qemu runs as a regular user, it cannot connect to hot-plug USB devices unless you change permssions on the host. Being in group plugdev might be sufficient for standard USD block devices. For others, such as an iphone, you need to manually change the /dev/bus/usb/xxx/yyy to group users or create /etc/udev/rules.d/97-iphone.rules.
https://www.linuxquestions.org/questions/blog/kingbeowulf-74138/qemu-usb-passthrough-with-specifics-for-iphone-37830/
0x05ac vendor ID in this case is for an Apple iPhone 5C. For iphones specifically, it can help to disable usbmuxd with an empty /etc/udev/rules.d/39-usbmuxd.rules
Now, either reboot (ha! this ain't windows!) or run as root
then edit yout lanch-mac-os.sh and add
Warning if you intend to code with xcode or upgrade your iphone with your mac , remove the productid . see comment below.
Pairing an iOS device with Xcode
https://stackoverflow.com/questions/10087985/xcode-doesnt-see-my-ios-device-but-itunes-does
Do I need to be a Apple Developer Member to deploy apps on my iphone ?
https://developer.apple.com/forums/thread/81424
when you launch your mac os x you should get this :
The text was updated successfully, but these errors were encountered: