XCListen

Build Status Code Climate

A zero-configuration filesystem watcher for ObjectiveC. It determines your workspace and scheme automatically, and:

  • runs tests each time you save a file
  • runs pod install each time you save the Podfile
  • formats your tests with RSpec-style output using XCPretty

Installation

$ gem install xclisten

Usage

Run this command from the same directory as your .xcworkspace:

$ xclisten

Simple, huh?

If you have an OSX project, you'll want to run it with --osx flag.

Flags

Usage: xclisten [optional flags]
        --osx                        Run with OSX sdk (without simulator)
        --ios                        [DEFAULT] Run with iOS sdk
    -d, --device                     Simulated device [iphone5s, iphone5, iphone4]. Default is iphone5s
    -s, --scheme SCHEME              BYOS (Bring your own scheme)
    -w, --workspace WORKSPACE        BYOW (Bring your own workspace)
    -h, --help                       Show this message
    -v, --version                    Show version

Something went wrong!

No worries, just tail -f xcodebuild_error.log and let us know what's happening.

TODO

  • Support non-cocoapods projects, when there's no .xcworkspace
  • Acceptance tests