indygreg / apple-platform-rs

Rust crates supporting Apple platform development
565 stars 38 forks source link

pkg signing error #140

Open turalf opened 4 months ago

turalf commented 4 months ago

While signing a package file I get this error. This is the command I use:

rcodesign sign --p12-file installer.p12 --p12-password-file ./.certificate-password test.pkg ./test-out.pkg

And I get this error:

signing test.pkg to ./test-out.pkg signing XAR pkg installer at test.pkg to ./test-out.pkg.tmp Error: XAR error: XML error: custom: unknown field id, expected one of name, offset, size, length, extracted-checksum, archived-checksum, encoding

The command is run on "Debian GNU/Linux 12 (bookworm)"

That is how I created the test.pkg file on macOS 14.4.1

mkdir test-pkg echo "echo test" > test-pkg/echoer pkgbuild --identifier test.pkg --root ./test-pkg ./test.pkg