News for hackers. Stuff that matters.
Re:Reviving a 16-year-old Mac App by tumultco on Tuesday May 05, 2020 @09:17PM (#23086990)
Exactly! The primary purpose of the `altool` for notarization is probably to do so in an automated manner, but it will not block while waiting for notarization. So to make this part of automation, nearly every developer needed to add polling loops and parse the response to figure out if it was done! The proper text to wait on also isn't obvious nor documented; if the status says "Package Approved" it may not even be complete yet.

Further, the first version would write status to standard error. Clearly a mistake, Apple did fix this in a future version... which of course broke everyone's automation around it. My polling script now logs the tool's stdout and stderr just in case.

Re:Reviving a 16-year-old Mac App by saagarjha on Tuesday May 05, 2020 @10:20PM (#23087344)
altool actually blocks for some things, like performing the actual upload…
Re:Reviving a 16-year-old Mac App by tumultco on Tuesday May 05, 2020 @11:01PM (#23087532)
Which could sometimes be a ridiculous amount of time itself too!

https://twitter.com/rosyna/status/1194765305987227649