diff --git a/packages/patrol_cli/lib/src/ios/ios_test_backend.dart b/packages/patrol_cli/lib/src/ios/ios_test_backend.dart index 0f218c2462..acbf6ff1d5 100644 --- a/packages/patrol_cli/lib/src/ios/ios_test_backend.dart +++ b/packages/patrol_cli/lib/src/ios/ios_test_backend.dart @@ -72,6 +72,15 @@ class IOSTestBackend { Process process; + // Running on physical iOS devices is possible only in release mode + final isRealDevice = !options.simulator; + final isReleaseMode = options.flutter.buildMode == BuildMode.release; + if (isRealDevice && !isReleaseMode) { + throwToolExit( + 'Running on physical iOS devices is possible only in release mode', + ); + } + // flutter build ios --config-only var flutterBuildKilled = false;