iOS 开发者模式

了解如何在 iOS 16 及以上版本上启用 iOS 开发者模式设置,以运行内部分发构建和本地开发构建。


这不适用于使用企业配置签名的构建,也不适用于安装在 iOS 模拟器上的任何构建。

运行 iOS 16 及以上版本的设备需要在运行 内部分发 构建(包括使用 EAS 构建的版本)或安装到设备上的本地开发构建之前,启用操作系统级别的 开发者模式 设置。

🌐 Devices running iOS 16 and above need to enable OS-level Developer Mode setting before they can run internal distribution builds (including those built with EAS) or local development builds after installing them on the device.

你可以通过两种方式在设备上启用开发者模式:

🌐 There are two ways you can enable Developer Mode on your device:

  • 直接在 iOS 设备上
  • 通过将 iOS 设备与安装了 Xcode 的 Mac 连接

先决条件

🌐 Prerequisites

每个设备都需要遵循下面指定的说明一次。

🌐 The instructions specified below need to be followed once per device.

启用开发者模式

🌐 Enable Developer Mode

直接在 iOS 设备上

🌐 Directly on an iOS device

要按照以下步骤操作,请在启用开发者模式之前先将你的开发版本安装到设备上。 当构建完成后,请按照 EAS 控制台上的说明将其安装到你的 iOS 设备上。

🌐 To follow the steps below, install your development build on your device before enabling the Developer Mode. When the build is created, follow the instructions on the EAS dashboard to install it on your iOS device.

1

一旦构建安装到你的设备上,点击应用图标。这将弹出一个提示,要求你启用开发者模式。点击 确定

🌐 Once the build is installed on your device, press the app icon. This will open an alert asking you to enable Developer Mode. Press OK.

2

打开设置应用,然后导航到 隐私与安全 > 开发者模式

🌐 Go to the Settings app, and navigate to Privacy & Security > Developer Mode.

3

启用该开关。你将收到 iOS 提示以重启设备。点击 重启

🌐 Enable the toggle. You will receive a prompt from iOS to restart your device. Press Restart.

4

设备重启后,解锁你的设备。系统提示应会出现。按 开启,然后在提示时输入设备的密码。

🌐 After the device restarts, unlock your device. A system alert should appear. Press Turn On and then, when prompted, enter your device's passcode.

开发者模式已启用。你现在可以与你的内部分发构建和本地开发构建进行交互。

🌐 Developer Mode is now enabled. You can now interact with your internal distribution builds and local development builds.

你可以随时关闭开发者模式。不过,如果想重新启用,你需要重复同样的操作。

🌐 You can turn off Developer Mode at any time. However, you'll need to repeat this same process to re-enable it.

将 iOS 设备连接到 Mac

🌐 Connect an iOS device with a Mac

注意: 在执行以下步骤之前,Mac 设备上必须安装 Xcode。

你不需要先在 iOS 设备上安装开发版来通过将其连接到 Mac 启用开发者模式。你可以:

🌐 You don't need to install the development build on your iOS device first to enable Developer Mode by connecting it to a Mac. You can:

1

使用 USB 数据线将你的 iOS 设备连接到 Mac。当出现“是否信任此电脑?”提示时,在 iOS 设备上点击 信任

🌐 Connect your iOS device to a Mac using a USB cable. Press Trust on your iOS device when Trust This Computer? alert is prompted.

2

打开 Xcode,然后从菜单栏中,导航到 窗口 > 设备和模拟器

🌐 Open Xcode, and from the menu bar, navigate to Window > Devices and Simulators.

设备下,你会看到一条警告“先前准备错误:开发者模式已禁用”,并附有在 iOS 设备上启用开发者模式的说明。

🌐 Under Devices, you'll see a warning "Previous preparation error: Developer Mode disabled" with instructions on enabling Developer Mode on the iOS device.

3

在 iOS 设备上,打开 设置 > 隐私与安全 > 开发者模式

🌐 On the iOS device, open Settings > Privacy & Security > Developer Mode.

启用该开关。你将收到 iOS 提示以重启设备。点击 重启

🌐 Enable the toggle. You will receive a prompt from iOS to restart your device. Press Restart.

4

设备重启后,请解锁设备。系统提示应该会出现。点击 开启,然后在提示时输入设备的密码。

🌐 After the device restarts, unlock your device. A system alert should appear. Press Turn On, and enter your device's passcode when prompted.

开发者模式已启用。你现在可以与你的内部分发构建和本地开发构建进行交互。

🌐 Developer Mode is now enabled. You can now interact with your internal distribution builds and local development builds.

你可以随时关闭开发者模式。不过,如果想重新启用,你需要重复同样的操作。

🌐 You can turn off Developer Mode at any time. However, you'll need to repeat this same process to re-enable it.