I remember getting a message while running my iOS app on an iOS device that said I have to turn Developer mode on in my iOS device and I found the setting and turned on developer mode. I'm looking for that setting again so I can turn it off on iPhone I use, so that my app can check if Developer mode is on, and if it's not on, certain features are disabled, particularly one that deletes data on the device. That is intended to delete test data. I don't want actual data on my iPhone to be deleted. I need this precaution. When I looked at Developer Settings in Settings app on my iPhone 8 using iOS 15.6.1, there doesn't seem to be any way of turning off developer mode. Is there something I can check on my device that I can use to let my app know that I don't want certain features to be available on my app for that specific device?
How do I turn off certain features on my iOS app when it's installed on a specific device?
Hello @ShinehahGnolaum.
Developer mode was introduced with iOS 16 and watchOS 9. It is not available in iOS 15.6.1.
Additionally, there is no API for identifying if your app is running in developer mode. That is not its purpose. Please see Enabling Developer Mode on a device for an overview of the option, including how to disable it.
You'll also see from the documentation that developer mode is provided to ensure users are aware of what they're doing when installing apps using methods such as Build and Run in Xcode, or installing an .ipa via Apple Configurator. It specifically does not have any impact on apps installed from the App Store or TestFlight.
Can you provide more information on why you want to know if a device is in developer mode?
—Jason.