Skip to content

Commit

Permalink
Use ditto instead of unzip to extract embedded .framework.zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Mar 9, 2024
1 parent 4bdbf3d commit 4a0c7f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public boolean build(File sourceZip, BuildRequest request) throws BuildException
if (child.getName().endsWith(".framework.zip")) {
log("Found framework "+child+". Attempting extract it and generate podspec for it");
try {
if (!exec(resDir, "unzip", child.getName(), "-d", new File(tmpDir, "dist").getAbsolutePath())) {
if (!exec(resDir, "ditto", "-x", "-k", child.getAbsolutePath(), new File(tmpDir, "dist").getAbsolutePath())) {
log("Failed to unzip " + child.getName());
return false;
}
Expand Down

0 comments on commit 4a0c7f5

Please sign in to comment.