Nothing Special   »   [go: up one dir, main page]

Enabling Developer Mode On A Device - Apple Developer Documentation

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

18/02/2024, 01:48 Enabling Developer Mode on a device | Apple Developer Documentation

/ / Devices and / Enabling Developer Mode on a


Documentation Xc… API Changes: None
Simulator device

Article

Enabling Developer Mode on a device


Grant or deny permission for locally installed apps to run on iOS, iPadOS,
visionOS, and watchOS devices.

Overview
Developer Mode, available in iOS 16 and later, watchOS 9 and later, and visionOS, protects
people from inadvertently installing potentially harmful software on their devices, and reduces
attack vectors exposed by developer-only functionality. The feature doesn’t affect ordinary
installation techniques like buying apps from the App Store, or participating in a TestFlight
team. Instead, Developer Mode focuses on scenarios like performing a Build and Run in
Xcode, or installing an .ipa file with Apple Configurator. In these cases, the device explicitly
asks the person using it to confirm that they’re a developer, aware of the risks of installing
development-signed software.

Enable Developer Mode


When you connect an iOS, visionOS, or watchOS device with Developer Mode disabled to
your Mac, the Xcode scheme selector’s destination list shows it as an “Unavailable Device”.

The Devices and Simulators window shows a similar banner if you have a device connected
with Developer Mode disabled.

If you attempt to build and run to the device, Xcode displays an alert to tell you the destination
isn’t valid because Developer Mode is disabled.

https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device/ 1/3
18/02/2024, 01:48 Enabling Developer Mode on a device | Apple Developer Documentation

Running your app on the device requires that you enable Developer Mode. On an iOS or
visionOS device, open Settings > Privacy & Security, scroll down to the Developer Mode list
item and navigate into it. On a watchOS device that you use for development, go to Settings >
Privacy > Developer Mode. To toggle Developer mode, use the Developer Mode switch.

Tap the switch to enable Developer Mode. After you do so, Settings presents an alert to warn
you that Developer Mode reduces the security of your device. To continue enabling Developer
Mode, tap the alert’s Restart button.

After the device restarts and you unlock it, the device shows an alert confirming that you want
to enable Developer Mode. To acknowledge the reduction in security protection in exchange
for allowing Xcode and other tools to execute code, tap Turn On, and enter your device
passcode when prompted.

At this point, your device is ready to install and run apps from Xcode. After you have enabled
Developer Mode the first time, Xcode doesn’t ask again unless you disable Developer Mode —
as described below — or you restore the device. You can Build and Run from Xcode without
further prompts to enable Developer Mode.

Disable Developer Mode

https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device/ 2/3
18/02/2024, 01:48 Enabling Developer Mode on a device | Apple Developer Documentation

If you want to disable Developer Mode, you do so directly on the device. Go to Settings >
Privacy & Security > Developer Mode to show the Developer Mode toggle switch.

Like enabling, disabling Developer Mode requires a device reboot before it becomes effective.
After you disable Developer Mode, you can’t run apps from Xcode on the device until you
reenable it, using the same switch in the device’s Settings.

See Also

Essentials
Running your app in Simulator or on a device
Launch your app in a simulated iOS, tvOS, watchOS, or visionOS device, or on a device
connected to a Mac.

https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device/ 3/3

You might also like