docs/scenes/get-started/set-up-your-environment/instructions/iosPhysicalDevelopmentBuildLocal.mdx
import { Terminal } from '/ui/components/Snippet';
import { Step } from '/ui/components/Step';
import XcodeInstructions from './_xcodeInstructions.mdx'; import { BuildEnvironmentSwitch } from '../BuildEnvironmentSwitch';
Run the following command in your project's root directory:
<Terminal cmd={['$ npx expo install expo-dev-client']} />
</Step> <Step label="2">Connect your iOS device to your Mac using a USB cable. Unlock the device and tap Trust if prompted.
Open Xcode. From the menu bar, select Window > Devices and Simulators. You will see a warning in Xcode to enable developer mode.
On your iOS device, open Settings > Privacy & Security, scroll down to the Developer Mode list item and navigate into it.
Tap the switch to enable Developer Mode. After you do so, Settings presents an alert to warn you that Developer Mode reduces your device's security. 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. Tap Turn On, and enter your device passcode when prompted.
Add the ios.bundleIdentifier in the app.json file in the root directory to a unique value so that Xcode generates the provisioning profile for the app signing step.
Run the following command in your project's root directory and select your plugged in device from the list:
<Terminal cmd={['$ npx expo run:ios --device']} />
</Step>This command runs a development server after building your app. You can skip running
npx expo starton the next page.