GithubHelp home page GithubHelp logo

device_api-ios's Introduction

DeviceAPI-IOS

DeviceAPI-IOS is the iOS implementation of DeviceAPI - an initiative to allow full automation of device activities. For a full list of release notes, see the change log

Dependencies

DeviceAPI-IOS shells out to a number of iOS command line tools. You will need to make sure that the libimobiledevice library is installed and the following commands are available on your path:

  • ideviceinfo

Using the gem

Add the device_api-ios gem to your gemfile - this will automatically bring in the device_api base gem on which the iOS gem is built.

gem 'device_api-ios'

You'll need to require the library in your code:

require 'device_api/ios'

Try connecting an iOS device with USB and run:

devices = DeviceAPI::IOS.devices

You might need to accept the 'Trust this computer' dialog on your device.

Detecting devices

There are two methods for detecting devices: DeviceAPI::IOS.devices This returns an array of objects representing the connected devices. You will get an empty array if there are no connected devices. DeviceAPI::IOS.device(serial_id) This looks for a device with a matching serial_id and returns a single device object.

Device object

When DeviceAPI detects a device, it returns a device object that lets you interact with and query the device with various iOS tools.

For example:

    device = DeviceAPI::IOS.device(serial_id)
    device.serial # '50d9299992726df277bg6befdf88e1704f4f8f8b'
    device.model # 'iPad mini 3'

License

DeviceAPI-IOS is available to everyone under the terms of the MIT open source licence. Take a look at the LICENSE file in the code.

Copyright (c) 2015 BBC

device_api-ios's People

Contributors

asimk21 avatar davidbuckhurst avatar iglunev avatar jrmhaig avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.