Flutter iOS Wireless Debugging
Contents
Setting Up Wireless Debugging
Connect to the Same Network
Ensure your Mac and iPhone are connected to the same Wi-Fi network.
Enable Network Debugging
- Enable
Developer Modeon your phone in Settings > Privacy & Security > Developer Mode. - Open Xcode and connect your iPhone.
- Select your device in
Window > Devices and Simulators. - Choose
Connect via Network. - Find the Network debugging information displayed in Xcode.
Run App
- Open a terminal and navigate to your Flutter project directory.
- Use the
flutter run -d <device id>command, replacing<device id>with the information from Xcode’s Network debugging details. - Watch your app launch on your iPhone!
You can also see your iPhone by refreshing the device list in Android Studio.
Troubleshooting
- Verify Network Connection: Double-check if both devices are on the same Wi-Fi network.
- Confirm Network Debugging: Ensure “Connect via Network” is selected in Xcode and the device ID is correct.
- Firewall Settings: Sometimes firewalls can interfere. Check your firewall settings and grant permission for Flutter if necessary.