danielpaulus / go-ios

This is an operating system independent implementation of iOS device features. You can run UI tests, launch or kill apps, install apps etc. with it.
MIT License
935 stars 181 forks source link

How to get the deviceinfo on WiFi ? #138

Open yunhailu opened 2 years ago

yunhailu commented 2 years ago

I can see function "ideviceinfo -n" in libimobiledevice. How could I get device infomation with go-ios. Then, could I automatic sync "Show this iphone on WiFi" on MacOS.

nanoscopic commented 1 year ago

go-ios communicates with the usbmuxd socket file. When wifi debugging is enabled on a device, ideviceinfo -n can be used to get info through the wifi endpoint instead of through usbmuxd.

go-ios does not have support to communicate to the wifi endpoint at this time.

It seems like you are asking if enabling the phone as a wifi debugging device can be automated. Yes and no. I looked into this. go-ios can do the things needed, but you still need to manually connect the device to a machine first, then pair it, and then it could be automated.

If that is what you are requesting, please change the ticket title to "please add commands to enable wifi debugging on device"

If what you are asking is "how do I use go-ios with wifi debugging enabled devices" then please change the title to "please add support to use go-ios with wifi debugging enabled devices".

If what you are asking is "how do I fetch device information of a device" then please read the documentation and close this ticket.