iOS 14.4 simulator keeps asking for Apple id during XCTest execution

Hi everyone,
I am quite new in XCUI test automation, but I faced with the problem I wasn't able to find answer to.
When I run my UI tests from xcode 12.4 on iOS simulator 14.4 - everything is fine, tests are executing and passing. But when I want to run my UI tests from command line by using xcodebuild:


after tests started pop-up which is asking to enter apple-id and password appears and causing tests to fail.

I tried to entered my apple id and password in the settings on Simulator I am using before running the tests and everything looks fine, I can see my name as I am logged in, but every time I start the tests with xcodebuild command from terminal, this apple id pop-up appears again and again and tests are filing because it overlaps UI controls.

Is it known issue or am I missing something in my configuration?

thanks in advance

Kind regards,
Dima

Seeing this also. It is rather annoying, often occurring 2-3 times per day per open simulator.

iOS 14.4 simulator keeps asking for Apple id during XCTest execution
 
 
Q