Race condition in macos-signer-gatekeeper-signing script
Ran into this this morning, fortunately(?) it doesnt alwasy happen so a second run was successful.
Logs:
2023-03-18T10:26:28+00:00 - Starting step: macos-signer-gatekeeper-signing
building file list ... done
created directory 12.0.4
TorBrowser-12.0.4-macos_ALL.dmg
sent 170,979,310 bytes received 75 bytes 8,340,457.80 bytes/sec
total size is 170,958,294 speedup is 1.00
Checksumming whole disk (unknown partition : 0)…
whole disk (unknown partition : 0): verified CRC32 $601C6983
verified CRC32 $CFD0707F
/dev/disk2 /Volumes/Tor Browser
Signing Tor Browser_ALL.app
Tor Browser.app/: signed app bundle with Mach-O universal (x86_64 arm64) [org.torproject.torbrowser]
codesign exit code: 0
Checking ALL...
Tor Browser.app/: rejected
source=Unnotarized Developer ID
origin=Developer ID Application: The Tor Project, Inc (MADPSAYN6T)
Tor Browser.app/: accepted
source=Developer ID
origin=Developer ID Application: The Tor Project, Inc (MADPSAYN6T)
Zipping up tb-12.0.4_ALL.zip
hdiutil: couldn't unmount "disk2" - Resource busy
To rectify, I had to log-in to mac-signer manually invoke the hdiutil deatch ...
command and re-run (which succeeded on a second try).
Looking at the script I'm not quite sure what could have caused this. I've never seen this before so perhaps we can just ignore until we have macOS signing on Linux working vOv.