Skip to main content

Python wrapper around the xcrun utility

Project description

xcrun

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

simctl

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 print the result of:

xcrun.simctl.listall.runtimes()

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:

iPhone7 = xcrun.simctl.device.from_name("iPhone 7")
iPhone7.do_thing(arg1, arg2, ...)

Testing

To run the tests, all you need to do is run python3 -m tox (can be installed by running python3 -m pip install tox).

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

xcrun-0.4.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file xcrun-0.4.tar.gz.

File metadata

  • Download URL: xcrun-0.4.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.1

File hashes

Hashes for xcrun-0.4.tar.gz
Algorithm Hash digest
SHA256 b183adb07486b409d64218f39f274f7cc6f731cae9ca8b781804d3b75aa0bb10
MD5 364b7019c33ce11973a1200de6bfa98e
BLAKE2b-256 535a2a2e693df8a1e656b3ccdd48a8a27ca837f4023f0bd6664b68e815ea0fc6

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