From 66a301474a01c11732db9b7c7ee57fc0dffd0931 Mon Sep 17 00:00:00 2001 From: Rahul Jiresal Date: Wed, 17 Aug 2016 16:38:37 -0700 Subject: [PATCH] Ignoring __MACOSX folder too --- ios/CodePush/CodePushUpdateUtils.m | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ios/CodePush/CodePushUpdateUtils.m b/ios/CodePush/CodePushUpdateUtils.m index b79d29e..df19dac 100644 --- a/ios/CodePush/CodePushUpdateUtils.m +++ b/ios/CodePush/CodePushUpdateUtils.m @@ -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;