Set the CONFIGURATION_BUILD_DIR in generated xcconfig when debugging core device (#134493)
Xcode uses the CONFIGURATION_BUILD_DIR build setting to determine the location of the bundle to build and install. When launching an app via Xcode with the Xcode debug workflow (for iOS 17 physical devices), temporarily set the CONFIGURATION_BUILD_DIR to the location of the bundle so Xcode can find it. Also, added a Xcode Debug version of the `microbenchmarks_ios` integration test since it uses `flutter run --profile` without using `--use-application-binary`. Fixes https://github.com/flutter/flutter/issues/134186.
This commit is contained in:
committed by
GitHub
parent
4d5a1d91e1
commit
af5ac930d8
@@ -64,6 +64,12 @@ Future<Map<String, double>> readJsonResults(Process process) {
|
||||
// See https://github.com/flutter/flutter/issues/19208
|
||||
process.stdin.write('q');
|
||||
await process.stdin.flush();
|
||||
|
||||
// Give the process a couple of seconds to exit and run shutdown hooks
|
||||
// before sending kill signal.
|
||||
// TODO(fujino): https://github.com/flutter/flutter/issues/134566
|
||||
await Future<void>.delayed(const Duration(seconds: 2));
|
||||
|
||||
// Also send a kill signal in case the `q` above didn't work.
|
||||
process.kill(ProcessSignal.sigint);
|
||||
try {
|
||||
|
||||
@@ -15,7 +15,10 @@ import '../microbenchmarks.dart';
|
||||
|
||||
/// Creates a device lab task that runs benchmarks in
|
||||
/// `dev/benchmarks/microbenchmarks` reports results to the dashboard.
|
||||
TaskFunction createMicrobenchmarkTask({bool? enableImpeller}) {
|
||||
TaskFunction createMicrobenchmarkTask({
|
||||
bool? enableImpeller,
|
||||
Map<String, String> environment = const <String, String>{},
|
||||
}) {
|
||||
return () async {
|
||||
final Device device = await devices.workingDevice;
|
||||
await device.unlock();
|
||||
@@ -41,9 +44,9 @@ TaskFunction createMicrobenchmarkTask({bool? enableImpeller}) {
|
||||
return startFlutter(
|
||||
'run',
|
||||
options: options,
|
||||
environment: environment,
|
||||
);
|
||||
});
|
||||
|
||||
return readJsonResults(flutterProcess);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user