Skip to main content

Python wrapper around the simctl utility

Project description

isim

Python Version Xcode 11.0

This is a Python wrapper around the xcrun simctl utility that Apple provides for interacting with the various Xcode developer tools.

xcrun simctl is the tool for interacting with the iOS simulator and is the main focus of this module. The syntax is designed to remain as close to that which would be used on the command line as possible. For example, to list all runtimes on the command line you would do:

xcrun simctl list runtimes

With this module you can simply do:

from isim import Runtime
print(Runtime.list_all())

Most functions are on the item that they affect. So instead of running something on a device like:

xcrun simctl do_thing <DEVICE_ID> arg1 arg2 ...

You can do this:

from isim import Device
iPhone7 = Device.from_name("iPhone 7")
iPhone7.do_thing(arg1, arg2, ...)

Testing

To run the tests, all you need to do is run python -m pytest tests from the root directory.

isim and Xcode Versioning

isim follows the current supported version of Xcode for its version scheme.

For example, if the currently supported version of Xcode is 11, then isim will be versioned as 11.minor.patch. The minor version will only be increased if there is a breaking change in Xcode requiring it (which is unlikely). The patch version will be increased with each patch that is made.

There is no expectation of backwards compatibility. If you need to support an older version of Xcode, you'll almost always need an older major version.

Note: The Xcode developer tools are installed with new betas. That means that if you are running Xcode 10.2.1, but then install the Xcode 11 beta, the simulator tools will be for Xcode 11, rather than Xcode 10, even if you run xcode-select -s. That means that as soon as you install a beta on your machine, you will need to use that version of isim.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isim-13.0.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

isim-13.0.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file isim-13.0.1.tar.gz.

File metadata

  • Download URL: isim-13.0.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.7 Darwin/20.5.0

File hashes

Hashes for isim-13.0.1.tar.gz
Algorithm Hash digest
SHA256 a8a8c7b5eeef82d9b3472da7fbf3c608549563c0583e2657c713e083ef0dfdf8
MD5 021b381245d80567e7edeb502616ca21
BLAKE2b-256 4a4afe672a98aa7911661ea486ae6459de2585a96c4ea9a59a91103af4f4974e

See more details on using hashes here.

File details

Details for the file isim-13.0.1-py3-none-any.whl.

File metadata

  • Download URL: isim-13.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.7 Darwin/20.5.0

File hashes

Hashes for isim-13.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c9c7a68f93e993e66e9107a84b65174dfc59e24eedc354a7ed0cb683a50e255
MD5 f9d087d29a575d27a581466d2f6bf1c0
BLAKE2b-256 dd9ac47387f6c3209ae12626f4d5e60b67e725f8fba176c18f0b7a667332a73b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page