diff options
author | Eike Ziller <eike.ziller@qt.io> | 2021-06-04 15:13:28 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2021-06-04 13:49:39 +0000 |
commit | 975c6cb096e1eb5866829385dac02ae59a6e61cb (patch) | |
tree | bcf51753cf1c9653a6177965d3ddf1ce045dc519 | |
parent | 2fa63a2801f4dc9a56daf29e41954b8cdc214afb (diff) | |
download | qt-creator-975c6cb096e1eb5866829385dac02ae59a6e61cb.tar.gz |
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 <alexandru.croitor@qt.io>
Reviewed-by: hjk <hjk@qt.io>
-rw-r--r-- | src/plugins/ios/iosprobe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/ios/iosprobe.cpp b/src/plugins/ios/iosprobe.cpp index 66518ad778..da901559e9 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"); |