简体   繁体   中英

XCUITest - Cell Selected not showing in hierarchy tree in iOS 15

We recently upgraded to XCode 13 / iOS 15 and cells are not longer showing "Selected" in the element hierarchy tree, using po XCUIApplication().

This is what we saw prior to the upgrade:

在此处输入图像描述

在此处输入图像描述

Using 14.4 or prior shows "Selected" but using a simulator with iOS 15 does not.

Does anyone have a solution or workaround for this?

Cell: 在此处输入图像描述

Once I ran the simulator using Rosetta, this is working now.

Within Applications, right click on XCode and show package contents. Contents > Developer > Applications > Simulator. Right click and select Get Info. Check Open Using Rosetta.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM