UIKit.ButtonBarButtonVisualProvider not key value coding-compliant for the key _titleButton

After updating to Xcode 26 my XCUITests are now failing as during execution exceptions are being raised and caught by my catch all breakpoint

These exceptions are only raised during testing, and seem to be referencing some private internal property. It happens when trying to tap a button based off an accessibilityIdentifier

e.g.

accessibilityIdentifier = "tertiary-button"

...
...

app.buttons["tertiary-button"].tap()

The full error is:

Thread 1: "[<UIKit.ButtonBarButtonVisualProvider 0x600003b4aa00> valueForUndefinedKey:]: this class is not key value coding-compliant for the key _titleButton."

Anyone found any workarounds or solutions? I need to get my tests running on the liquid glass UI

UIKit.ButtonBarButtonVisualProvider not key value coding-compliant for the key _titleButton
 
 
Q