Updated iPhone enable developer mode instructions (#154511)

The instructions specify to enable Developer Mode in Privacy and Security. But Developer Mode option is not available, unless you open Xcode and reconnect the device.

___________
9/23 edit from @andrewkolos: See https://stackoverflow.com/questions/77648341/flutter-not-reading-device-developer-mode-setting
This commit is contained in:
Viraj Kanwade 2024-10-11 23:23:13 -07:00 committed by GitHub
parent 63dd042e72
commit 0eedec47c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View File

@ -29,7 +29,9 @@ String _foundSpecifiedDevicesMessage(int count, String deviceId) =>
String _noMatchingDeviceMessage(String deviceId) => 'No supported devices found with name or id ' String _noMatchingDeviceMessage(String deviceId) => 'No supported devices found with name or id '
"matching '$deviceId'."; "matching '$deviceId'.";
String flutterSpecifiedDeviceDevModeDisabled(String deviceName) => 'To use ' String flutterSpecifiedDeviceDevModeDisabled(String deviceName) => 'To use '
"'$deviceName' for development, enable Developer Mode in Settings → Privacy & Security."; "'$deviceName' for development, enable Developer Mode in Settings → Privacy & Security on the device. "
'If this does not work, open Xcode, reconnect the device, and look for a '
'popup on the device asking you to trust this computer.';
String flutterSpecifiedDeviceUnpaired(String deviceName) => "'$deviceName' is not paired. " String flutterSpecifiedDeviceUnpaired(String deviceName) => "'$deviceName' is not paired. "
'Open Xcode and trust this computer when prompted.'; 'Open Xcode and trust this computer when prompted.';

View File

@ -1267,8 +1267,8 @@ target-device (mobile) • xxx • ios • iOS 16 (unsupported)
final List<Device>? devices = await targetDevices.findAllTargetDevices(); final List<Device>? devices = await targetDevices.findAllTargetDevices();
expect(logger.statusText, equals(''' expect(logger.statusText, equals(r'''
To use 'target-device' for development, enable Developer Mode in Settings Privacy & Security. To use 'target-device' for development, enable Developer Mode in Settings Privacy & Security on the device. If this does not work, open Xcode, reconnect the device, and look for a popup on the device asking you to trust this computer.
''')); '''));
expect(devices, isNull); expect(devices, isNull);
}); });
@ -1279,7 +1279,7 @@ To use 'target-device' for development, enable Developer Mode in Settings → Pr
final List<Device>? devices = await targetDevices.findAllTargetDevices(); final List<Device>? devices = await targetDevices.findAllTargetDevices();
expect(logger.statusText, equals(''' expect(logger.statusText, equals('''
To use 'target-device-1' for development, enable Developer Mode in Settings Privacy & Security. To use 'target-device-1' for development, enable Developer Mode in Settings Privacy & Security on the device. If this does not work, open Xcode, reconnect the device, and look for a popup on the device asking you to trust this computer.
Checking for wireless devices... Checking for wireless devices...
''')); '''));
expect(devices, isNotNull); expect(devices, isNotNull);
@ -1292,8 +1292,8 @@ Checking for wireless devices...
final List<Device>? devices = await targetDevices.findAllTargetDevices(); final List<Device>? devices = await targetDevices.findAllTargetDevices();
expect(logger.statusText, equals(''' expect(logger.statusText, equals('''
To use 'target-device-1' for development, enable Developer Mode in Settings Privacy & Security. To use 'target-device-1' for development, enable Developer Mode in Settings Privacy & Security on the device. If this does not work, open Xcode, reconnect the device, and look for a popup on the device asking you to trust this computer.
To use 'target-device-2' for development, enable Developer Mode in Settings Privacy & Security. To use 'target-device-2' for development, enable Developer Mode in Settings Privacy & Security on the device. If this does not work, open Xcode, reconnect the device, and look for a popup on the device asking you to trust this computer.
No devices found yet. Checking for wireless devices... No devices found yet. Checking for wireless devices...
No supported devices found with name or id matching 'target-device'. No supported devices found with name or id matching 'target-device'.