diff --git a/ios-deploy.c b/ios-deploy.c index e734fba..c00a768 100644 --- a/ios-deploy.c +++ b/ios-deploy.c @@ -325,6 +325,9 @@ CFStringRef copy_xcode_path_for(CFStringRef subPath, CFStringRef search) { if (!found) { path = CFStringCreateWithFormat(NULL, NULL, CFSTR("%@/%@/%@"), xcodeDevPath, subPath, search); found = path_exists(path); + if (verbose && !found) { + NSLog(@"copy_xcode_path_for path not found: %@", path); + } } // Try find `xcode-select --print-path` with search as a name pattern if (!found) { @@ -335,16 +338,25 @@ CFStringRef copy_xcode_path_for(CFStringRef subPath, CFStringRef search) { path = find_path(CFStringCreateWithFormat(NULL, NULL, CFSTR("%@/%@"), xcodeDevPath, subPath), search, CFSTR("")); } found = CFStringGetLength(path) > 0 && path_exists(path); + if (verbose && !found) { + NSLog(@"copy_xcode_path_for path not found: %@", path); + } } // If not look in the default xcode location (xcode-select is sometimes wrong) if (!found) { path = CFStringCreateWithFormat(NULL, NULL, CFSTR("/Applications/Xcode.app/Contents/Developer/%@&%@"), subPath, search); found = path_exists(path); + if (verbose && !found) { + NSLog(@"copy_xcode_path_for path not found: %@", path); + } } // If not look in the users home directory, Xcode can store device support stuff there if (!found) { path = CFStringCreateWithFormat(NULL, NULL, CFSTR("%s/Library/Developer/Xcode/%@/%@"), home, subPath, search); found = path_exists(path); + if (verbose && !found) { + NSLog(@"copy_xcode_path_for path not found: %@", path); + } } CFRelease(xcodeDevPath);