How to Detect iOS Developer Mode Programmatically?

Hi everyone, I’m trying to detect if Developer Mode is enabled on iOS 16+ devices using Swift but haven’t found any official APIs or documentation for this. Are there Apple-recommended ways to achieve this, or is it restricted for privacy/security reasons?

Thanks!

There isn't an API for this. What are you trying to accomplish?

— Ed Ford,  DTS Engineer

How to Detect iOS Developer Mode Programmatically?
 
 
Q