iOS 开发者模式
了解如何在 iOS 16 及更高版本上启用 iOS 开发者模式以运行内部发行版本和本地开发版本。
这不适用于使用企业配置签名的构建或安装在 iOS 模拟器上的任何构建。
¥This does not apply to builds signed using enterprise provisioning or to any builds installed on an iOS Simulator.
运行 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 设备上
¥Directly on an iOS device
-
通过将 iOS 设备与安装了 Xcode 的 Mac 连接
¥By connecting an iOS device with a Mac that has Xcode installed
先决条件
¥Prerequisites
每个设备都需要遵循下面指定的说明一次。
¥The instructions specified below need to be followed once per device.
启用开发者模式
¥Enable Developer Mode
直接在 iOS 设备上
¥Directly on an iOS device
要按照以下步骤操作,请在启用开发者模式之前在你的设备上安装你的开发版本。创建版本后,请按照 Expo 仪表板上的说明将其安装到你的 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 Expo 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
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.
Connect an iOS device with a Mac
Note: Xcode must be installed on the Mac device before following the steps below.
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
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
Open Xcode, and from the menu bar, navigate to Window > Devices and Simulators.
Under Devices, you'll see a warning "Previous preparation error: Developer Mode disabled" with instructions on enabling Developer Mode on the iOS device.
3
On the iOS device, open Settings > Privacy & Security > Developer Mode.
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.