XCUITest recording fails with “Please select a scheme where ”XCUITodo“ is the executable”

后端 未结 3 1445
春和景丽
春和景丽 2021-01-04 05:41

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 cl

相关标签:
3条回答
  • 2021-01-04 06:25

    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.

    0 讨论(0)
  • 2021-01-04 06: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.

    0 讨论(0)
  • 2021-01-04 06:42

    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
    0 讨论(0)
提交回复
热议问题