This uses Patrol's own example app and contains no application-specific code.
Environment verified:
- Patrol master
ede803499 - Patrol CLI master
ede803499 - Flutter 3.47.0 / Dart 3.13.0
- Xcode 26.6 on macOS 26.6.1
- iPad (A16) simulator on iOS 26.5
Copy diagnostic_collection_repro_test.dart into packages/patrol/example/patrol_test/, then run from packages/patrol/example:
dart run ../../patrol_cli/bin/main.dart \
--flutter-command=/path/to/flutter/3.47/bin/flutter \
test \
--device=<ios-simulator-uuid> \
--target=patrol_test/diagnostic_collection_repro_test.dart \
--verboseVerified result with Xcode's default diagnostic policy:
-
All 61 XCTest cases pass in 954 seconds.
-
The command does not return after the passing suite.
-
xcodebuildstarts:simctl diagnose -l -b --timeout=600 ... -
The post-test diagnostic phase lasts up to another 10 minutes.
The same generated .xctestrun has DiagnosticCollectionPolicy = 1. Setting it to 0 (Never) before xcodebuild test-without-building prevents the diagnostic phase.