homebrew-cask icon indicating copy to clipboard operation
homebrew-cask copied to clipboard

"Stats.app" cannot be opened because the developer cannot be verified

Open X-dark opened this issue 1 year ago • 12 comments

Verification

Description of issue

Each time Stats is upgraded by Brew, macOS is complaining about "developer cannot be verified". Uninstalling then reinstalling the app, fixes it (until the next upgrade). cf https://github.com/exelban/stats/issues/1469 and https://github.com/exelban/stats/issues/1562

Command that failed

Stats.app

Output of command with --verbose --debug

N/A

Output of brew doctor and brew config

❯ brew doctor
Your system is ready to brew.

❯ brew config
HOMEBREW_VERSION: 4.2.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: cfac516ee045d869be34598152e80a11ef2befe7
Last commit: 2 days ago
Core tap JSON: 30 Jan 15:01 UTC
Core cask tap JSON: 30 Jan 15:01 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: ["--appdir=~/Applications"]
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_UPGRADE_GREEDY: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit arm_blizzard_avalanche
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.3-arm64
CLT: 15.1.0.0.1.1700200546
Xcode: N/A
Rosetta 2: false

Output of brew tap

❯ brew tap
homebrew/cask-fonts
homebrew/services
michaelroosz/ssh
theseal/ssh-askpass

X-dark avatar Jan 30 '24 15:01 X-dark

I have the same problem with Stats while none of the other apps exhibit this behavior. I have the following in my Brewfile: cask_args appdir: '/Applications', no_quarantine: true

vraravam avatar Feb 10 '24 02:02 vraravam

What does codesign -v <app location> say?

SMillerDev avatar Feb 10 '24 15:02 SMillerDev

❯ codesign -v -v ~/Applications/Stats.app
/Users/E0376464/Applications/Stats.app: valid on disk
/Users/E0376464/Applications/Stats.app: satisfies its Designated Requirement

X-dark avatar Feb 12 '24 13:02 X-dark

This has been difficult to track as it seems to happen sporadically. We are wondering if it has something to do with the code signing being cached between versions incorrectly.

I haven't been able to reliably replicate the issue.

bevanjkay avatar Feb 12 '24 14:02 bevanjkay

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Mar 05 '24 00:03 github-actions[bot]

pinging to remove staleness

vraravam avatar Mar 05 '24 00:03 vraravam

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Mar 27 '24 00:03 github-actions[bot]

@vraravam @X-dark Can you confirm whether or not you have the "fan helper" installed?

bevanjkay avatar Apr 09 '24 07:04 bevanjkay

i dont think i have that installed @bevanjkay

vraravam avatar Apr 09 '24 07:04 vraravam

I have the fan helper installed. This issue happens to me mostly after I restart my machine. Spotify and Stats almost always give me developer cannot be verified popup on machine startup.

Moulick avatar Apr 26 '24 06:04 Moulick

It definitely seems to be to do with the login items getting stuck in a state where maybe they are attached to the old version somehow. I haven't been able to find a way to track and fix the issue yet.

bevanjkay avatar Apr 26 '24 07:04 bevanjkay

Any information that we can gather to help figure out the issue?

Just as an side note, if MacOS fails to launch spotify/stats due to this issue, and I click cancel to prevent starting the apps, MacOS repeatedly tries to launch the apps again and again throwing the error popup again and again. Only solution is found is running sudo xattr -rd com.apple.quarantine /Applications/Spotify.app and then it starts

Moulick avatar Apr 26 '24 18:04 Moulick

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Aug 16 '24 00:08 github-actions[bot]