Episode #84

xctool

8 minutes
Published on September 12, 2013

This video is only available to subscribers. Get access to this video and 573 others.

Trying to run unit tests with xcodebuild leaves a lot to be desired. In this screencast I'll show you why xctool is a superior alternative. Quick, parsable build output and easy to follow pass/fail status on test runs make xctool worth checking out.

Episode Links

Installing xctool

xctool is most easily installed with homebrew: brew install xctool. Once installed, you'll have an xctool command on your system. This command takes arguments similar to xcodebuild, so transitioning over should be simple.

A script to run tests

xctool -workspace LoginTester.xcworkspace \
       -scheme LoginTesterTests \
       -sdk iphonesimulator \
       clean build test \
       ONLY_ACTIVE_ARCH=NO