We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d013935 + 5a31a31 commit bcd0561Copy full SHA for bcd0561
1 file changed
CodePushPackage.m
@@ -302,6 +302,14 @@ + (void)downloadPackage:(NSDictionary *)updatePackage
302
return;
303
}
304
} else {
305
+ if ([[NSFileManager defaultManager] fileExistsAtPath:bundleFilePath]) {
306
+ [[NSFileManager defaultManager] removeItemAtPath:bundleFilePath error:&error];
307
+ if (error) {
308
+ failCallback(error);
309
+ return;
310
+ }
311
312
+
313
[[NSFileManager defaultManager] moveItemAtPath:downloadFilePath
314
toPath:bundleFilePath
315
error:&error];
0 commit comments