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

Commit 66a3014

Browse files
author
Rahul Jiresal
committed
Ignoring __MACOSX folder too
1 parent 146355b commit 66a3014

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

ios/CodePush/CodePushUpdateUtils.m

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

2222
for (NSString *fileName in folderFiles) {
23-
#if TARGET_IPHONE_SIMULATOR
24-
// If the user is running this in a simulator, there is a chance
25-
// that the .DS_Store file will mess up the calculated hash
26-
// We must skip this file.
27-
if ([fileName isEqualToString:@".DS_Store"]) {
23+
// We must skip the macOS generated files.
24+
if ([fileName isEqualToString:@".DS_Store"] || [fileName isEqualToString:@"__MACOSX"]) {
2825
continue;
2926
}
30-
#endif
27+
3128
NSString *fullFilePath = [folderPath stringByAppendingPathComponent:fileName];
3229
NSString *relativePath = [pathPrefix stringByAppendingPathComponent:fileName];
3330
BOOL isDir = NO;

0 commit comments

Comments
 (0)