MacOS – Unpacking a installer is failing with pkgutil tool

macospkg

when I am trying to unpack installer with (pkgutil –expand xyz.pkg output/path) it says "problem extracting file from package" output/path/XXX.bundle/contents/_codesignature/coderesources

What could be the possible reason for failure?

Best Answer

It was the missing owner write permissions of the pkg that is causing the problem.