2

I'm developing a macOS app which needs to detect & get information from connected iOS devices via an USB cable.

I've read here how I can get the name of the devices connected via USB, but I'm only able to get a short name of the device (i.e. iPhone instead of John's iPhone)

I'm looking for a way to retrieve the device's full name, and other information about the device: iOS version, device id, carrier etc.

Can this be achieved using Swift?

user3673952
  • 698
  • 10
  • 30
  • You know `ideviceinfo` from [libimobiledevice](https://github.com/libimobiledevice/libimobiledevice)? I would assume that you have to directly takt to the device via MacOS usbmux and query the information the same way ideviceinfo does. – Robert Aug 09 '21 at 15:35
  • @Robert, I did not know about ideviceinfo, thanks! I will check if I can find a way to directly include it into my app – user3673952 Aug 09 '21 at 18:46

1 Answers1

0

Thanks to @Robert's comment, I found out about libimobiledevice's ideviceinfo which does what I needed. I couldn't find a way to directly include it in my app, but I found the imobiledevice-net repo, which has macOS libraries on the release page.

These libraries can be used with the help of Swift's Process class.

user3673952
  • 698
  • 10
  • 30