Commit c4b617ab authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

ios: correctly handle exe path in subdir projects

Change-Id: I77c90933bf2f0fe9c2ae59bf76638adf995c368a
Reviewed-by: default avatarMarkus Goetz <>
Reviewed-by: default avatarFawzi Mohamed <>
parent cc4aae53
......@@ -206,7 +206,15 @@ Utils::FileName IosRunConfiguration::bundleDir() const
QmakeBuildConfiguration *bc =
qobject_cast<QmakeBuildConfiguration *>(target()->activeBuildConfiguration());
if (bc) {
res = bc->buildDirectory();
QmakeProject *pro = qobject_cast<QmakeProject *>(target()->project());
const QmakeProFileNode *node = pro->rootQmakeProjectNode()->findProFileFor(profilePath());
if (node) {
TargetInformation ti = node->targetInformation();
if (ti.valid)
res = FileName::fromString(ti.buildDir);
if (res.isEmpty())
res = bc->buildDirectory();
switch (bc->buildType()) {
case BuildConfiguration::Debug :
case BuildConfiguration::Unknown :
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment