Python wrapper around the simctl utility
Project description
isim
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file isim-11.0.0.tar.gz
.
File metadata
- Download URL: isim-11.0.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.10 CPython/3.7.3 Darwin/18.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba29a311112f748a5cb672ef545d096f540be9d892b990935b688cd7487d1512 |
|
MD5 | d6252a7dd8c5cde369e3853df3e5f18a |
|
BLAKE2b-256 | cc5cd88c4bcd064dab725de995b4a95748dca1d7818cc3d355fae64488186adf |
Provenance
File details
Details for the file isim-11.0.0-py3-none-any.whl
.
File metadata
- Download URL: isim-11.0.0-py3-none-any.whl
- Upload date:
- Size: 33.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.10 CPython/3.7.3 Darwin/18.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf354b3f083d718d3a544f5e4b23acc6dda7ee1b1d0e35521503c0027835f6b |
|
MD5 | cd17113fc9dbe154fb6f14755f4112ad |
|
BLAKE2b-256 | b8e7de428c5876fe21507a0fd2914eb5a1344d8a11b291f144a2ee1549092f2f |