Ignoring __MACOSX folder too

This commit is contained in:
Rahul Jiresal
2016-08-17 16:38:37 -07:00
parent 146355b5e0
commit 66a301474a

View File

@@ -20,14 +20,11 @@ NSString * const ManifestFolderPrefix = @"CodePush";
}
for (NSString *fileName in folderFiles) {
#if TARGET_IPHONE_SIMULATOR
// If the user is running this in a simulator, there is a chance
// that the .DS_Store file will mess up the calculated hash
// We must skip this file.
if ([fileName isEqualToString:@".DS_Store"]) {
// We must skip the macOS generated files.
if ([fileName isEqualToString:@".DS_Store"] || [fileName isEqualToString:@"__MACOSX"]) {
continue;
}
#endif
NSString *fullFilePath = [folderPath stringByAppendingPathComponent:fileName];
NSString *relativePath = [pathPrefix stringByAppendingPathComponent:fileName];
BOOL isDir = NO;