Starting from iOS 9, it is also required to establish trust to the application developer in device settings before launching diagnostics on the device. See device documentation for more info: https://support.apple.com/en-us/HT204460
Android devices
Must have USB debugging enabled before running diagnostics (just like forerasure).