aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ios/iosrunner.cpp
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2020-08-10 14:23:50 +0200
committerEike Ziller <[email protected]>2020-08-10 15:56:54 +0200
commit3944162039d9cea30384a0d867afab35cc3bfabf (patch)
treeec07f797055a69823f47edff588f5dc82a1dfeca /src/plugins/ios/iosrunner.cpp
parent84e4b3af31364973c44ad52c8c01430d42f996a4 (diff)
parentacadee710e00cca55736db864263bdcdcbac31a6 (diff)
Merge remote-tracking branch 'origin/4.13' into master
Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri src/plugins/cmakeprojectmanager/cmakebuildstep.cpp src/plugins/cmakeprojectmanager/cmakebuildstep.h tests/auto/debugger/tst_namedemangler.cpp tests/auto/qml/codemodel/check/tst_check.cpp Change-Id: Iefd5f71c03c0078513b76a92af764a4fb22ee4c2
Diffstat (limited to 'src/plugins/ios/iosrunner.cpp')
-rw-r--r--src/plugins/ios/iosrunner.cpp40
1 files changed, 19 insertions, 21 deletions
diff --git a/src/plugins/ios/iosrunner.cpp b/src/plugins/ios/iosrunner.cpp
index b422723a952..e7fcf05d0f9 100644
--- a/src/plugins/ios/iosrunner.cpp
+++ b/src/plugins/ios/iosrunner.cpp
@@ -436,28 +436,26 @@ void IosDebugSupport::start()
IosDevice::ConstPtr dev = device().dynamicCast<const IosDevice>();
setStartMode(AttachToRemoteProcess);
setIosPlatform("remote-ios");
- QString osVersion = dev->osVersion();
- FilePath deviceSdk1 = FilePath::fromString(QDir::homePath()
- + "/Library/Developer/Xcode/iOS DeviceSupport/"
- + osVersion + "/Symbols");
- QString deviceSdk;
- if (deviceSdk1.isDir()) {
- deviceSdk = deviceSdk1.toString();
- } else {
- const FilePath deviceSdk2 = IosConfigurations::developerPath()
- .pathAppended("Platforms/iPhoneOS.platform/DeviceSupport/"
- + osVersion + "/Symbols");
- if (deviceSdk2.isDir()) {
- deviceSdk = deviceSdk2.toString();
- } else {
- TaskHub::addTask(DeploymentTask(Task::Warning, tr(
- "Could not find device specific debug symbols at %1. "
- "Debugging initialization will be slow until you open the Organizer window of "
- "Xcode with the device connected to have the symbols generated.")
- .arg(deviceSdk1.toUserOutput())));
- }
+ const QString osVersion = dev->osVersion();
+ const QString cpuArchitecture = dev->cpuArchitecture();
+ const FilePaths symbolsPathCandidates = {
+ FilePath::fromString(QDir::homePath() + "/Library/Developer/Xcode/iOS DeviceSupport/"
+ + osVersion + " " + cpuArchitecture + "/Symbols"),
+ FilePath::fromString(QDir::homePath() + "/Library/Developer/Xcode/iOS DeviceSupport/"
+ + osVersion + "/Symbols"),
+ IosConfigurations::developerPath().pathAppended(
+ "Platforms/iPhoneOS.platform/DeviceSupport/" + osVersion + "/Symbols")};
+ const FilePath deviceSdk = Utils::findOrDefault(symbolsPathCandidates, &FilePath::isDir);
+
+ if (deviceSdk.isEmpty()) {
+ TaskHub::addTask(DeploymentTask(
+ Task::Warning,
+ tr("Could not find device specific debug symbols at %1. "
+ "Debugging initialization will be slow until you open the Organizer window of "
+ "Xcode with the device connected to have the symbols generated.")
+ .arg(symbolsPathCandidates.constFirst().toUserOutput())));
}
- setDeviceSymbolsRoot(deviceSdk);
+ setDeviceSymbolsRoot(deviceSdk.toString());
} else {
setStartMode(AttachExternal);
setIosPlatform("ios-simulator");