From c8424a6b0a012b7ec757ae2365f369a3d7562645 Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Thu, 18 Feb 2016 00:09:21 +0000 Subject: xcode_locator outputs developer directories instead of xcode paths -- MOS_MIGRATED_REVID=114910110 --- src/main/tools/xcode_locator.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main/tools/xcode_locator.m') diff --git a/src/main/tools/xcode_locator.m b/src/main/tools/xcode_locator.m index 6b8fffc700..5b7a12e1f2 100644 --- a/src/main/tools/xcode_locator.m +++ b/src/main/tools/xcode_locator.m @@ -104,8 +104,8 @@ int main(int argc, const char * argv[]) { if (version == nil) { printf("xcode_locator \n" "Given a version number, or partial version number in x.y.z format, will attempt " - "to return the path to the appropriate Xcode.app.\nOmitting a version number will " - "list all available versions in JSON format.\n"); + "to return the path to the appropriate developer directory.\nOmitting a version " + "number will list all available versions in JSON format.\n"); return 1; } @@ -131,7 +131,9 @@ int main(int argc, const char * argv[]) { return 1; } version = ExpandVersion(version); - XcodeVersionEntry *entry = [[XcodeVersionEntry alloc] initWithVersion:version url:url]; + NSURL *developerDir = [url URLByAppendingPathComponent:@"Contents/Developer"]; + XcodeVersionEntry *entry = + [[XcodeVersionEntry alloc] initWithVersion:version url:developerDir]; AddEntryToDictionary(entry, dict); } -- cgit v1.2.3