Record feature in xcode is giving error message

2020-03-01 10:00发布

问题:

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

回答1:

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.



回答2:

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.



回答3:

Ensure that an executable is selected for your UITest scheme.

  1. Select Product > Scheme > Manage Schemes
  2. Select your UITest scheme in the list
  3. Select Edit
  4. Select the Info tab under Run
  5. Ensure that the required Executable is selected


标签: xcode8