Skip to content

hiifong/libimobiledevice

Repository files navigation

libimobiledevice-go

Go Reference Go Report Card

WIP: Go bindings for libimobiledevice

Prerequisites

Ubuntu:

sudo apt-get install \
    libplist-dev \
	libusbmuxd-dev \
	libimobiledevice-glue-dev \
	libtatsu-dev \
	libssl-dev \
	usbmuxd

For more information, please see the official repository.

Install

go get github.com/hiifong/libimobiledevice

Usage

  • 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)

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

About

WIP: Go bindings for libimobiledevice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages