Record feature in xcode is giving error message

2020-03-01 10:07发布

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

标签: xcode8
3条回答
够拽才男人
2楼-- · 2020-03-01 10:29

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楼-- · 2020-03-01 10:31

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.

查看更多
forever°为你锁心
4楼-- · 2020-03-01 10:32

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
查看更多
登录 后发表回答