From 975c6cb096e1eb5866829385dac02ae59a6e61cb Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 4 Jun 2021 15:13:28 +0200 Subject: [PATCH] iOS: Don't run event loop while executing xcode-select This fixes debugging Qt Creator with the iOS plugin enabled. For unclear reasons running the event loop while executing the process locks Qt Creator up when debugging. Since running the event loop is a dangerous hack anyhow and in this case we don't have much benefit from it, just don't do it. Change-Id: Ie147d3461823587a987d0920efdfae0839fb5b67 Reviewed-by: Alexandru Croitor Reviewed-by: hjk --- src/plugins/ios/iosprobe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/ios/iosprobe.cpp b/src/plugins/ios/iosprobe.cpp index 66518ad7788..da901559e94 100644 --- a/src/plugins/ios/iosprobe.cpp +++ b/src/plugins/ios/iosprobe.cpp @@ -68,7 +68,7 @@ void XcodeProbe::detectDeveloperPaths() Utils::SynchronousProcess selectedXcode; selectedXcode.setTimeoutS(5); const CommandLine xcodeSelect{"/usr/bin/xcode-select", {"--print-path"}}; - Utils::SynchronousProcessResponse response = selectedXcode.run(xcodeSelect); + Utils::SynchronousProcessResponse response = selectedXcode.runBlocking(xcodeSelect); if (response.result != Utils::SynchronousProcessResponse::Finished) qCWarning(probeLog) << QString::fromLatin1("Could not detect selected Xcode using xcode-select");