Permalink
Browse files

Use the xcrunPath settings value for the xcrun path

  • Loading branch information...
1 parent 443c360 commit d13a7fabc20dff37d89057b6d4bcd94226412774 @NachoMan NachoMan committed Sep 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 Generating/GBDocSetOutputGenerator.m
  2. +1 −1 Generating/GBDocSetPublishGenerator.m
@@ -184,7 +184,7 @@ - (BOOL)indexDocSet:(NSError **)error {
GBTask *task = [GBTask task];
task.reportIndividualLines = YES;
NSArray *args = [NSArray arrayWithObjects:@"docsetutil", @"index", [self.outputUserPath stringByStandardizingPath], nil];
- BOOL result = [task runCommand:@"/usr/bin/xcrun" arguments:args block:^(NSString *output, NSString *error) {
+ BOOL result = [task runCommand:self.settings.xcrunPath arguments:args block:^(NSString *output, NSString *error) {
if (output) GBLogDebug(@"> %@", [output stringByTrimmingWhitespaceAndNewLine]);
if (error) GBLogError(@"!> %@", [error stringByTrimmingWhitespaceAndNewLine]);
}];
@@ -64,7 +64,7 @@ - (BOOL)generateOutputWithStore:(id)store error:(NSError **)error {
[args addObject:installedDocSetPath];
// Run the task.
- BOOL result = [task runCommand:@"/usr/bin/xcrun" arguments:args block:^(NSString *output, NSString *error) {
+ BOOL result = [task runCommand:self.settings.xcrunPath arguments:args block:^(NSString *output, NSString *error) {
if (output) GBLogDebug(@"> %@", [output stringByTrimmingWhitespaceAndNewLine]);
if (error) GBLogError(@"!> %@", [error stringByTrimmingWhitespaceAndNewLine]);
}];

0 comments on commit d13a7fa

Please sign in to comment.