diff --git a/tools/build/toolchain.py b/tools/build/toolchain.py index 688c300a..03715f48 100644 --- a/tools/build/toolchain.py +++ b/tools/build/toolchain.py @@ -1316,4 +1316,12 @@ class CommandHandler: for o, a in self.opts: if o == '--identity': identity = a - self.ic.signmac(identity) \ No newline at end of file + + # HACK: codesign fails intermittently. we need some sort of retry mechanism + # but i don't have time right now so just hammer the crap out of it and hope + # one attempt works. + self.ic.signmac(identity) + self.ic.signmac(identity) + self.ic.signmac(identity) + self.ic.signmac(identity) + self.ic.signmac(identity)