How to detect if the device is in Developer Mode

When I plug a device and debug an app to it, the Xcode do something that prepare that device for development and creates a item on Settings app.


I want a way to, programmatically, detect on iOS app if the device is in Developer Mode or if this option is enabled on Settings app.

Replies

I know this question is very old, but I would love to know if that's possible.
There is no API to determine if a device is used for development.

Has something changed in ios16 when developer mode is enabled as part of the device settings?