• iPhone,  JAMF

    Transfer Text In And Out Of The iOS Simulator Using xcrun

    In a previous article, I covered creating, starting, and stopping iOS simulations. macOS comes with a handy tool to interact with the clipboard (aka pasteboard) on a Mac called pbcopy. You can redirect information from a file into your clipboard using the pbcopy command. Here, we’ll simply call pbcopy and then a file path pbcopy ~/Desktop/transfer.txt You can then redirect your text into simctl by doing a pbpaste into xcrun simctl pbpaste booted Once you’ve copied your data, clean up the transfer file: rm ~/Desktop/transfer.txt You can also pull text out. If you write data into the clipboard (e.g. during instrumentation) then you can extract it from that pasteboard using…