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

Same. Every time I press on a back button, I get a crash with the same reason. I have no KVC in my code and nothing tries to manipulate _titleButton.

Same here... seems it started since Xcode 26.4 for me. Any update on this?

Hello @chbeer,

Can you please clarify if you're getting the same error as in the OP, calling out _titleButton?

Can any of you please replicate this issue with a small test project and test case? If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

Please let me know,

Richard Yeh  Developer Technical Support

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