How to test correct behaviour if passcode is set/unset

Hello!

I need to write tests to see if my app behaves correctly when the device passcode is set or not set.

I looked in the simctl documentation for commands to set/remove the passcode, but couldn't find anything about it. Is there any other way to control this in (integration) tests?

Thanks Niels

How to test correct behaviour if passcode is set/unset
 
 
Q