From 616ec2a924d8abec680f1106beb7dd7af6d6c350 Mon Sep 17 00:00:00 2001 From: Vincent Bénony Date: Mon, 7 Dec 2015 10:13:25 +0100 Subject: IOS: Fixes Xcode group paths The generated project paths were recognized by Xcode, but not third party tools, like AppCode. --- devtools/create_project/xcode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp index 8365114863..b3129a538c 100644 --- a/devtools/create_project/xcode.cpp +++ b/devtools/create_project/xcode.cpp @@ -142,8 +142,9 @@ bool shouldSkipFileForTarget(const std::string &fileID, const std::string &targe } XcodeProvider::Group::Group(XcodeProvider *objectParent, const std::string &groupName, const std::string &uniqueName, const std::string &path) : Object(objectParent, uniqueName, groupName, "PBXGroup", "", groupName) { + bool path_is_absolute = (path.length() > 0 && path.at(0) == '/'); addProperty("name", name, "", SettingsNoValue|SettingsQuoteVariable); - addProperty("sourceTree", "", "", SettingsNoValue|SettingsQuoteVariable); + addProperty("sourceTree", path_is_absolute ? "" : "", "", SettingsNoValue|SettingsQuoteVariable); if (path != "") { addProperty("path", path, "", SettingsNoValue|SettingsQuoteVariable); -- cgit v1.2.3