Repeated "unlock account" alerts in simulator / test devices

As of a few weeks ago or so I'm finding it hard to test my apps in the simulator or on test devices. When I try to sign into iCloud (my apps use CloudKit) or sometimes even make a sandbox StoreKit purchase, I get a "unlock account" alert that refers me to one of my real devices, which then prompts me to change my password. I did that once but then the next day it wanted me to change the password again.

Is this expected, and if so how are developers expected to handle this?

Repeated "unlock account" alerts in simulator / test devices
 
 
Q