I'm new to the Xcode testing, I'm using xcode8 to automate my application. As a start up I downloaded existing code XCUIToDo project and opened in xcode editor, When I click on Record button I'm seeing warning message "Please select a scheme where "XCUITodo" is the executable" and record feature is not working. Please let me know where I'm missing.
TIA
Click on Project Root, then Targets -> XCUIToDoUITests target. From the General tab, check the "Target Application" setting under Testing section. The value in the dropdown should match the XCUIToDo target.
The problem is not on the UITest schema or target. When starting to record, the main schema (the one which runs the application) needs to be selected regardless if you have your UI tests on a different schema.
Ensure that an executable is selected for your UITest scheme.