Query - iOS 15 - WebDriverAgent prompts for passcode / Touch Id for "Enable UI Automation"

Sometimes our Test devices prompt for the passcode/touch ID to "Enable UI Automation", when WebDriverAgent is installed on the device using XCode. Then it works for some hours or days, but after some time it prompts again, even when WebDriverAgent is already installed.

"Enable UI Automation" is already enabled in "Settings" - "Developer" menu.

The devices are located remotely and we can't access them directly, so this is a big issue for us right now. Removing the passcode is no valid workaround since we have apps that require the passcode to start.

Why it is random even when "Enable UI Automation" is already enabled and WebDriverAgent is already installed or no change.

Query - iOS 15 - WebDriverAgent prompts for passcode / Touch Id for "Enable UI Automation"
 
 
Q