From 2b6d8697d5739bb754d055a9bd0ae5783386c13f Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Thu, 9 Aug 2012 12:17:31 -0700 Subject: [PATCH] Fix compiler warnings --- Tools/XcodeCapp/TNXCodeCapp.m | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Tools/XcodeCapp/TNXCodeCapp.m b/Tools/XcodeCapp/TNXCodeCapp.m index eb90ce76e..c6f660d13 100644 --- a/Tools/XcodeCapp/TNXCodeCapp.m +++ b/Tools/XcodeCapp/TNXCodeCapp.m @@ -421,22 +421,24 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification { NSString *shadowPath = [[self shadowURLForSourceURL:[NSURL URLWithString:[fullPath stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]] path]; - NSArray *PBXArguments = [NSArray arrayWithObjects: @"-c", - [NSString stringWithFormat:@"(%@; python %@ remove '%@' '%@' '%@' '%@') 2>&1", - profilePath, - PBXModifierScriptPath, - XCodeSupportPBXPath, - shadowPath, - fullPath, - [currentProjectURL path]],nil]; - DLog(@"Removing shadow file: %@", shadowPath); [fm removeItemAtPath:shadowPath error:nil]; DLog(@"Removing PBX reference task..."); + +#if DEBUG + NSArray *PBXArguments = [NSArray arrayWithObjects: @"-c", + [NSString stringWithFormat:@"(%@; python %@ remove '%@' '%@' '%@' '%@') 2>&1", + profilePath, + PBXModifierScriptPath, + XCodeSupportPBXPath, + shadowPath, + fullPath, + [currentProjectURL path]],nil]; NSArray *statusInfo = [self runTask:PBXArguments]; NSNumber *status = [statusInfo objectAtIndex:0]; NSString *response = [statusInfo objectAtIndex:1]; +#endif DLog(@"PBX Reference removal status/response: %@/%@", status, response); } else if ([self isXCCIgnoreFile:fullPath]) @@ -751,6 +753,7 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification DLog(@"cleaning shadow file: %@", subpath); [fm removeItemAtPath:shadowFullPath error:nil]; +#if DEBUG NSArray *PBXArguments = [NSArray arrayWithObjects: @"-c", [NSString stringWithFormat:@"(%@; python %@ remove '%@' '%@' '%@' '%@') 2>&1", profilePath, @@ -764,6 +767,7 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification NSArray *statusInfo = [self runTask:PBXArguments]; NSNumber *status = [statusInfo objectAtIndex:0]; NSString *response = [statusInfo objectAtIndex:1]; +#endif DLog(@"PBX Reference cleaning status/response: %@/%@", status, response); if (![self supportFileLevelAPI] && [self respondsToSelector:@selector(updateLastModificationDate:forPath:)])