iOS Actions programmatically

Hello all,

we have a test that during execution we disable the location setting with adb commands for android devices.
I am wondering how we do it with iOS devices because I haven’t found a way to interact to ios system with code.

Every suggestion is more than appreciated!