diff --git a/specs/simctl.txt b/specs/simctl.txt index f35a006..651b36d 100644 --- a/specs/simctl.txt +++ b/specs/simctl.txt @@ -280,7 +280,7 @@ Usage: simctl location [arguments] If neither are specified an interval of 1.0 seconds is used. If both are specified the system picks ones. Example simulating a direct line between San Francisco and New York City, with updates every km: - set --distance=1000 --speed=260 37.629538,-122.395733 40.628083,-73.768254 + start --distance=1000 --speed=260 37.629538,-122.395733 40.628083,-73.768254 Latitude and longitude pairs must be specified using '.' as the decimal separator and ',' as the field separator. @@ -310,11 +310,11 @@ Usage: simctl pair_activate xcrun simctl help pbcopy Copy standard input onto the device pasteboard. -Usage: simctl pbcopy [-v] +Usage: simctl pbcopy [-v] xcrun simctl help pbpaste Print the contents of the device's pasteboard to standard output. -Usage: simctl pbpaste [-v] +Usage: simctl pbpaste [-v] xcrun simctl help pbsync Sync the pasteboard content from one pasteboard to another. @@ -457,6 +457,9 @@ Specifying all will shut down all running devices xcrun simctl help spawn Spawn a process by executing a given executable on a device. Usage: simctl spawn [-w | --wait-for-debugger] [-s | --standalone] [-a | --arch=] [ ... ] +-w Start the process suspended. +-s Use a NULL mach bootstrap port, meaning the process cannot connect to other services and does not require a booted device. (deprecated) +-a Specify an architecture (x86_64 or arm64) to use when spawning a universal binary. The path to the executable is searched using the following rules: contains no / characters: search the device's $PATH. This is similar to how most shells work, but searches the device's path instead of the host's path. @@ -649,7 +652,7 @@ Locate, copy, mount, and unmount simulator runtime disk images. Usage: simctl legacyruntime Supported Operations: - mount [--shadow ] [--internal | --customer] [--writable] [--no-mount] [--no-copy] [--print-only] [--max-cache-size ] [--cache-path ] + mount [--shadow ] [--internal | --customer] [--writable] [--no-mount] [--no-copy] [--print-only] [--use-nfs | --use-existing ] [--max-cache-size ] [--cache-path ] Locate a Simulator Runtime for the given train and build, copy the disk image locally, then mount it to make the runtime available to CoreSimulator. --internal @@ -669,6 +672,8 @@ Supported Operations: NOTE: You don't want this. --use-nfs By default images are downloaded from NFA. If this is passed in, the image is copied from NFS instead. Note that newer images (as of SkyB) are no longer available via NFS. + --use-existing + By default images are downloaded from NFA. If this is passed in, the image specified at the provided path will be used instead of downloading one. --no-mount Copy the image to the cache (if not present), but do not actually mount it. Prints the path of the image as the last line of output. --print-only @@ -715,7 +720,7 @@ Supported Operations: Platform may be iOS, tvOS, or watchOS to select the relevant Xcode-bundled runtime. - update_dyld_shared_cache ( | ) + update_dyld_shared_cache ( | | ) Update the dyld shared cache for a specific runtime. diff --git a/src/_simctl b/src/_simctl index 6e2051e..e8865f5 100644 --- a/src/_simctl +++ b/src/_simctl @@ -201,10 +201,9 @@ _options() { (spawn) _arguments \ - '(-w --wait-for-debugger)'{-w,--wait-for-debugger} \ - '(-s --standalone)'{-s,--standalone} \ - '(--arch)-a:arch:' \ - '(-a)--arch=-:arch:' \ + '(-w --wait-for-debugger)'{-w,--wait-for-debugger}'[start the process suspended]' \ + '(-s --standalone)'{-s,--standalone}'[use a NULL mach bootstrap port, meaning the process cannot connect to other services and does not require a booted device (deprecated)]' \ + '(-a --arch)'{-a,--arch}'[specify an architecture to use when spawning a universal binary]:arch:(x86_64 arm64)' \ '(-): :{FILTER=booted _devices}' \ ':path:_files' \ '*::argv:' @@ -719,6 +718,8 @@ _legacyruntime_arguments() { '(--customer)--internal[(default) select the internal runtime]' \ '(--internal)--customer[select the customer (public) runtime]' \ '--writable[when mounting the disk image, do not use a shadow file: directly mount the image as writable]' \ + '(--use-existing)--use-nfs[copy image from NFS]' \ + '(--use-nfs)--use-existing[use image specified at the provided path]:path:_files' \ '--no-mount[copy the image to the cache (if not present), but do not actually mount it]' \ '--no-copy' \ '--print-only[print the path to the image on the network but take no other action]' \ @@ -758,7 +759,7 @@ _legacyruntime_arguments() { (update_dyld_shared_cache|remove_dyld_shared_cache) _arguments \ - '::platform or train-build:_files' + '::platform or train-build or path:_files' ;; esac