Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit ab5d26f

Browse files
authored
Merge pull request #471 from aerofs/hash_without_DS_Store
Fix the hash mismatch happening due to .DS_Store [Simulator]
2 parents 93c3e61 + 66a3014 commit ab5d26f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ios/CodePush/CodePushUpdateUtils.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ + (void)addContentsOfFolderToManifest:(NSString *)folderPath
2020
}
2121

2222
for (NSString *fileName in folderFiles) {
23+
// We must skip the macOS generated files.
24+
if ([fileName isEqualToString:@".DS_Store"] || [fileName isEqualToString:@"__MACOSX"]) {
25+
continue;
26+
}
27+
2328
NSString *fullFilePath = [folderPath stringByAppendingPathComponent:fileName];
2429
NSString *relativePath = [pathPrefix stringByAppendingPathComponent:fileName];
2530
BOOL isDir = NO;

0 commit comments

Comments
 (0)