Xcode write function gives error message

I'm new to Xcode testing, I use xcode8 to automate my application. As a launch, I downloaded an existing XCUIToDo project and opened it in the xcode editor. When I click on the “Record” button, I see a warning message “Please select a circuit where“ XCUITodo ”is executable” and the recording function does not work. Please let me know where I am missing.

TIA

+4
source share
2 answers

Click Project Root, then Goals → XCUIToDoUITests. On the General tab, select the Target Application check box in the Test section. The value in the drop-down list should match the purpose of XCUIToDo.

+2
source

The problem is not in the UITest scheme or purpose. When you start recording, the main circuit (the one that launches the application) should be selected regardless of whether you have user interface tests on another circuit.

+2
source

Source: https://habr.com/ru/post/1656725/


All Articles