iOS 15 - UI Test keeps asking pin code for "Enable UI Automation"

We got the newly issue that our Test devices keeps us asking for the pin code to "Enable UI Automation".

Then it works for some hours or days, but after some time it starts again.

"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.

Is there any way to avoid this?

  • Can you elaborate a bit on your exact setup? AutomationMode should only ask for the device password if one is set. This is very unusual in situations where you don't have physical access to the device (e.g. CI).

  • Yes, we have the device password set. Setup is a MacMini with MacOS BigSur, Xcode 13 and two devices connected via USB. iPhone XS and iPhone 7, both iOS 15.1. It seems like the frequent asking for device code is new behaviour. I will check if we can remove the password.

  • We have a similar problem where we do not have physical access to the device, the device is located remotely in the cloud and the application that we are testing needs the passcode enabled on the device. This iOS 15 change of entering the passcode physically has completely blocked us with our testing. Is there any way to explicitly avoid/ give permission once? So that the OS does not ask for the passcode even if the passcode is enabled on the device? How do we make it work on CI?

Replies

Remote automation on IOS 15 is blocked because of this change.