To set up this example, open Example.xcodeproj:
In Build Settings, add -ObjC to “Other Linker Flags”. Whether you do this at the target level or project level doesn't matter, as long as the change is applied to the ExampleTests target.
Open the Build Phases for the ExampleTests target:
Then command-U to run unit tests. Try changing one of the tests to fail.