xcrun stapler error/message confusing

Hi,

We are running xcrun staple on our pkg file. It gives the following message

We do not know how to deal with trailer version 9262. Exepected 1

Terminator Trailer size must be 0, not 1737

{magic: t8lr, version: 1, type: 2, length: 1737}

Found expected ticket at 8164385 with length of 1737

Sig Type is RSA. Length is 3

Sig Type is CMS. Length is 3

Package mypkg.pkg uses a checksum of size 20

*The staple and validate action worked!*

However, the command returns with -1 error code.

So, the questions I have are:

  • What does this return response mean?
  • Do we consider this as a success of failure scenario (specially because the message "...action worked"

How are you creating this installer package? Using Apple tools?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

ah, no, we are using munkipkg. https://github.com/munki/munki-pkg

is that likely to be the reason?

I don’t know; I don’t have direct experience with that tool.

However, I have seen problems similar to this with other third-party tools that create packages. My general advice is that you try to reproduce this with Apple tools. That has two benefits:

  • If the problem reproduces with Apple tools, then you can seek help from Apple because, you know, we can no longer pass the buck (-:

  • OTOH, if the Apple package works but your third-party one doesn’t, that’s something you can reasonable escalate via the support channel for your third-party tooling.

Packaging Mac software for distribution has a simple example of how to create a package using Apple tools.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

xcrun stapler error/message confusing
 
 
Q