Xcode 7 UI Tests, Recording button is greyed out
I got stuck on this for a while too. In order to record, you have to be in a class that Xcode recognizes as containing tests. Add a file to your UI testing target with something like:
import Foundationimport XCTestclass MyTests: XCTestCase { func testSomething() { }}
Save the file, clean your project, and switch to another file then back to this one. Record button should be available then.
FWIW: I had this problem and it turns out I was trying to run the simulator in the wrong OS.
I was trying to use iOS 8, and UITesting only works in iOS 9+.
Switch the simulator version, and the record button appears.