On the iOS device, open Settings > Privacy & Security > Developer Mode. Enable the toggle. You will receive a prompt from iOS to restart your ...
You should be able to disable developer mode by entering the following command in the Terminal app (which is built-into macOS): DevToolsSecurity -disable.