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 0f218c246..26252e915 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,14 @@ class IOSTestBackend { Process process; + 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;