File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -617,9 +617,10 @@ int main(int argc, char *argv[])
617617 if (range.location != NSNotFound ) {
618618 // In Xcode 11, the directories were reordered. Prefer the Xcode 11 order.
619619 NSUInteger start = range.location + range.length ;
620+ NSRange replaceablePart = NSMakeRange (start, [sdkRoot length ] - start);
620621 for (NSString *simulator in [NSArray arrayWithObjects: @" iPhoneOS.platform/Library/Developer" , @" iPhoneOS.platform/Developer/Library" , nil ]) {
621622 NSString *candidate = [simulator stringByAppendingString: @" /CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot" ];
622- NSString *root = [sdkRoot stringByReplacingCharactersInRange: NSMakeRange (start, [sdkRoot length ] - start) withString: candidate];
623+ NSString *root = [sdkRoot stringByReplacingCharactersInRange: replaceablePart withString: candidate];
623624 if ([fileManager fileExistsAtPath: root]) {
624625 return root;
625626 }
You can’t perform that action at this time.
0 commit comments