Skip to content

Commit

Permalink
IOS: Fixes Xcode group paths
Browse files Browse the repository at this point in the history
The generated project paths were recognized by Xcode, but not third party tools, like AppCode.
  • Loading branch information
Vincent Bénony committed Jan 6, 2016
1 parent dcad83e commit 616ec2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devtools/create_project/xcode.cpp
Expand Up @@ -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", "<group>", "", SettingsNoValue|SettingsQuoteVariable);
addProperty("sourceTree", path_is_absolute ? "<absolute>" : "<group>", "", SettingsNoValue|SettingsQuoteVariable);

if (path != "") {
addProperty("path", path, "", SettingsNoValue|SettingsQuoteVariable);
Expand Down

0 comments on commit 616ec2a

Please sign in to comment.