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;