As of Xcode 8.2, we can now take screenshots through the simctl tool by doing something like:
$ xcrun simctl io booted screenshot
It would be nice if the gem also provided an interface for grabbing this screenshot, with options to save to a named file, but perhaps also to grab the bytes from stdout.
I imagine a new method on the Device class would be something like:
As of Xcode 8.2, we can now take screenshots through the
simctl
tool by doing something like:It would be nice if the gem also provided an interface for grabbing this screenshot, with options to save to a named file, but perhaps also to grab the bytes from stdout.
I imagine a new method on the
Device
class would be something like: