Reputation: 171
I'm using Xcode 8 to automate my application. I get started by downloading an existing code: XCUIToDo project. I opened the project in Xcode, and when I click on the Record button, I'm seeing a warning message "Please select a scheme where "XCUITodo" is the executable" and the record feature does not start. Please let me know where I'm missing.
TIA
Upvotes: 17
Views: 4994
Reputation: 1725
For me after making sure everything mentioned above is selected properly, I had to choose same scheme (as selected under info
in edit scheme
) next to device selection on the top.
Upvotes: 0
Reputation: 722
Ensure that an executable is selected for your UITest scheme.
Upvotes: 23
Reputation: 2698
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.
Upvotes: 16
Reputation: 196
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.
Upvotes: 11