Practicing with the Raw Commands

For our first adventure, we need to understand the raw commands and what they do. Alas, Apple’s command-line dev tools often feel like a hostile environment. They change things all the time, and we need to write our shell scripts defensively. We’re going to look at the build process to create an app bundle in a known location, and then look at the automation process that launches Instruments, pointing it at the app bundle and the script we want to run.

To prepare, make sure the command-line tools are installed and ready on your machine. Pull up the Xcode preferences, switch to the Downloads tab, and click the Install button for the command-line tools if they’re not already installed; see the following figure. ...

Get Test iOS Apps with UI Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.