Closed woodruffw closed 1 year ago
Yep, looks like missing resources:
$ codesign --verify --verbose /Applications/Sonixd.app
/Applications/Sonixd.app: code has no resources but signature indicates they must be present
$ codesign -d --verbose /Applications/Sonixd.app
Executable=/Applications/Sonixd.app/Contents/MacOS/Sonixd
Identifier=Electron
Format=app bundle with Mach-O thin (arm64)
CodeDirectory v=20400 size=1825 flags=0x20002(adhoc,linker-signed) hashes=54+0 location=embedded
Signature=adhoc
Info.plist=not bound
TeamIdentifier=not set
Sealed Resources=none
Internal requirements=none
Upstream is tracking a similar issue (https://github.com/jeffvli/sonixd/issues/412), but I'm sure it's 100% the same: the error above indicates that the cask'd app does have a signature (but that resources needed for verification are missing), while upstream indicates that they haven't added codesigning yet.
Forcefully de-quarantining the application does work, however:
sudo xattr -r -d com.apple.quarantine /Applications/Sonixd.app
Yeah, then there's no gatekeeper so no signing check
Yep, that's only a workaround. I'm not too familiar with how Cask signs for the applications, but from upstream it sounds like maybe the signature we're adding here doesn't fully encompass the application's resources. I'll look into it more.
@miccal: premature close I think: the default brew install --cask sonixd
still results in a broken install on ARM Macs.
It is an issue with the code signing, so there is nothing we can do via Cask.
It is an issue with the code signing, so there is nothing we can do via Cask.
Gotcha. I thought Cask might be doing its own self-signing, but if that's not the case then this is purely upstream.
Try running brew audit --cask --signing sonixd
to verify. But Homebrew will never sign something it didn't create.
Verification
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
Installing Sonixd via
brew install --cask
succeeds, but fails to open with the following error dialog:I'm filing this for visibility, but I'll also look into fixing it. My guess is that it's a codesigning bug, maybe because of application resources that have changed.
Host information:
Command that failed
brew install --cask sonixd
Output of command with
--verbose --debug
Output of
brew doctor --verbose
Output of
brew tap