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 tox (can be installed via pip).

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.2.tar.gz (7.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: xcrun-0.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xcrun-0.2.tar.gz
Algorithm Hash digest
SHA256 e613990621de58298d6c20d2b69d5f43408a29074fa0ee92d443c779d63a0c09
MD5 952ba5c69d6c564bd6c3718e3c320636
BLAKE2b-256 0aa5d904e850ded8bfa9d01e515925ab4042f3389b085eb8b0156bc0f4f7ba22

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