packagesdev/packages

Create xar archive - Unknown Error

sagecook opened this issue · 10 comments

I get an "Unknown Error" message when the packager (1.2.9) is creating the xar archive. This used to work a couple years back. I updated to the latest packager version (1.2.10) and it still gives the error. Also, I get this error both in the GUI and when running the packagesbuild command.
The OS is Catalina (10.15.7) and the payload is around 2.2 GB I would guess. BTW, I have plenty of disk space.
Any thoughts?

What's the size of the biggest file in the payload?
Is Full Disk Access granted?

There is a file in one of the Payload directories that is about 2.2 GB

This is OK.

My user has full access to the file system where the package is being assembled.
Obviously the temporary files are in /tmp/xxxxx where everyone has read/write access.

The limitation with Full Disk Access is not whether the user has full access or whether the files/directories have proper POSIX permissions. It's whether macOS grants access to these locations to some applications.

I would suggest to check first the System Preferences > Security & Privacy > Privacy and check the list of apps in Full Disk Access.

If the list does not include one of more items listed in this document (http://s.sudre.free.fr/Software/Packages/Q&A_7.html), this could be a possible origin of the issue.

To follow up, I still have the problem. All the packaging apps, like packagesbuild, packagesutil, and Packages.app have Full Disk access.

@sagecook did you ever find a solution to this? In my case, the package builds perfectly when I don't include my codesigning Developer ID Installer certificate. When I add the certificate, I get the same error. Full disk access granted on my end as well (using packages 1.2.11 and macOS 13.1 if it helps)

I was able to get around this issue by building without the certificate, then manually signing the package with productsign

x74353 commented

Also getting this create xar archive unknown error. Only happens when I try to sign with my Developer ID Installer cert. Error occurs both when trying to sign with a G2 Sub-CA certificate and a Sub-CA.

Got this too. Just delete 'build' folder in the same folder with pkgproj file. Deleteing this build folder need sudo auth, guess that's the problem.

Same issue here, and unfortunately deleting the build folder did not do the trick for me. However removing the signed cert did allow the pkg to build with no errors.
Packages Version: 1.2.11
MacOS Version: 15.0.1