Я решил с помощью скрипта на этапе сборки:
echo "list all files in [$FULL_PRODUCT_NAME]"
cd "$CODESIGNING_FOLDER_PATH"
find . -type f > "$CODESIGNING_FOLDER_PATH"/filelist.txt
И добавил код для поиска пути к файлу в filelist.txt:
BOOL file_found = NO;
for (NSString* file_path in AllFilesList) // AllFilesList keeps list from allfiles.txt
{
if ([file_path rangeOfString: relPath].location == 2) // 2 because all paths start with './'
{
file_found = YES;
break;
}
}
if (!file_found)
{
NSLog (@"!!! ERROR !!! file not found: [%@]", relPath);
for (NSString* file_path in AllFilesList)
{
if ([file_path rangeOfString: relPath options: NSCaseInsensitiveSearch].location == 2)
{
NSLog (@" corresponding file may be: [%@]", relPath);
break;
}
}
}