aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ios/iostoolhandler.cpp
diff options
context:
space:
mode:
authorFawzi Mohamed <[email protected]>2014-10-15 18:49:03 +0200
committerFawzi Mohamed <[email protected]>2014-10-16 10:38:23 +0200
commit96af4e3c8ed9c9820d7a04776a8d8b5417340e07 (patch)
treef58f0f540385468cae0ff4bcc23c246f1ddfe6c5 /src/plugins/ios/iostoolhandler.cpp
parent4073016aba47ae749ccb282b19250d05fbbde35c (diff)
support xcode6.1
correctly redirect output, and cleanup pipes This diverges a bit from upstream, but unfortunately upstream was not robust. Change-Id: Icf161e928033299f6078eee0859ac50835b9ffff Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/plugins/ios/iostoolhandler.cpp')
-rw-r--r--src/plugins/ios/iostoolhandler.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/plugins/ios/iostoolhandler.cpp b/src/plugins/ios/iostoolhandler.cpp
index 979417220b2..e64181079d3 100644
--- a/src/plugins/ios/iostoolhandler.cpp
+++ b/src/plugins/ios/iostoolhandler.cpp
@@ -215,9 +215,16 @@ IosToolHandlerPrivate::IosToolHandlerPrivate(IosDeviceType::Enum devType,
if (k.startsWith(QLatin1String("DYLD_")))
env.remove(k);
QStringList frameworkPaths;
- QString xcPath = IosConfigurations::developerPath().appendPath(QLatin1String("../OtherFrameworks")).toFileInfo().canonicalFilePath();
- if (!xcPath.isEmpty())
- frameworkPaths << xcPath;
+ Utils::FileName xcPath = IosConfigurations::developerPath();
+ QString privateFPath = xcPath.appendPath(QLatin1String("Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks")).toFileInfo().canonicalFilePath();
+ if (!privateFPath.isEmpty())
+ frameworkPaths << privateFPath;
+ QString otherFPath = xcPath.appendPath(QLatin1String("../OtherFrameworks")).toFileInfo().canonicalFilePath();
+ if (!otherFPath.isEmpty())
+ frameworkPaths << otherFPath;
+ QString sharedFPath = xcPath.appendPath(QLatin1String("../SharedFrameworks")).toFileInfo().canonicalFilePath();
+ if (!sharedFPath.isEmpty())
+ frameworkPaths << sharedFPath;
frameworkPaths << QLatin1String("/System/Library/Frameworks")
<< QLatin1String("/System/Library/PrivateFrameworks");
env.insert(QLatin1String("DYLD_FALLBACK_FRAMEWORK_PATH"), frameworkPaths.join(QLatin1Char(':')));