Skip to content

Commit

Permalink
* fixed 744: delete existing IPA when packaging new one
Browse files Browse the repository at this point in the history
otherwise existing ZIP's content is being updated as result it receives extra files (like debug symbols) that cause size increase. Also it might cause CodeSign to be invalid as it might contain not covered files
  • Loading branch information
dkimitsa committed Sep 8, 2023
1 parent a94a6b2 commit 1c7b99a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,8 @@ public void archive() throws IOException {

private void packageApplication(File appDir) throws IOException {
File ipaFile = new File(config.getInstallDir(), getExecutable() + ".ipa");
// remove ipa otherwise its content will get updated
FileUtils.deleteQuietly(ipaFile);
config.getLogger().info("Packaging IPA %s from %s", ipaFile.getName(), appDir.getName());

File tmpDir = new File(config.getInstallDir(), "ipabuild");
Expand Down

0 comments on commit 1c7b99a

Please sign in to comment.