Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #93 from LegNeato/master
Browse files Browse the repository at this point in the history
Make xctool support DEVELOPER_DIR
  • Loading branch information
LegNeato committed Jul 8, 2013
2 parents bc5be63 + 7166797 commit 8c14b08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xctool/xctool/XCToolUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath:@"/usr/bin/xcode-select"];
[task setArguments:@[@"--print-path"]];
[task setEnvironment:@{}];
// Pass through the environment so DEVELOPER_DIR works
// (see man page for xcode-select)
[task setEnvironment:[[NSProcessInfo processInfo] environment]];

NSString *path = LaunchTaskAndCaptureOutput(task)[@"stdout"];
path = [path stringByTrimmingCharactersInSet:
Expand Down

0 comments on commit 8c14b08

Please sign in to comment.