WIP: Go bindings for libimobiledevice
Ubuntu:
sudo apt-get install \
libplist-dev \
libusbmuxd-dev \
libimobiledevice-glue-dev \
libtatsu-dev \
libssl-dev \
usbmuxdFor more information, please see the official repository.
go get github.com/hiifong/libimobiledevice- Enable debug
libimobiledevice.SetDebugLevel(true)- Get a list of UDIDs of currently available devices (USBMUX devices only).
udids, err := libimobiledevice.GetDeviceList()
if err != nil {
fmt.Println(err)
}
fmt.Println(udids)- Connect to device with udid
device, err := libimobiledevice.NewDevice("00008140-001C0C693C08801C")
if err != nil {
fmt.Println(err)
}
fmt.Println(device)Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request