
This command-line tool allows you to perform different actions on an Xcode project or workspace, such as building, archiving, querying information, and of course, testing. When you need to interact with an Xcode project from the terminal, xcodebuild is the first place to look in. Running the tests from the command line is a necessary step for Continuous Integration and can come in handy when working solo, too.įor example, you might want to run a script to automate publishing a build to TestFlight and run the unit and UI test suites as a pre-check.



#Run ios emulator on mac terminal how to#
This post shows how to run Xcode unit tests and UI tests from your terminal and how to format the output for readability with xcbeautify and xcpretty.
