caldwell / build-emacs

Build scripts for www.emacsformacosx.com
http://www.emacsformacosx.com/about
GNU General Public License v3.0
364 stars 61 forks source link

Error `"This application will not run on your computer. Sorry!"`with Emacs-27.2-3-universal.dmg on macOS 11.6 #113

Closed erikmd closed 2 years ago

erikmd commented 2 years ago

Hi, I've installed Emacs using Homebrew cask on my MacBook Air:

brew install --cask emacs

which automatically downloaded https://emacsformacosx.com/download/emacs-builds/Emacs-27.2-3-universal.dmg

Then, I workarounded #109 by running

xattr -d -r com.apple.quarantine /Applications/Emacs.app

But on next run from a regular zsh terminal:

emacs

I get "This application will not run on your computer. Sorry!"

FTR, emacs is a symlink to /opt/homebrew/bin/emacs which in turn points to the ruby script /Applications/Emacs.app/Contents/MacOS/Emacs

so I believe the issue directly comes from this script, because I can both run:

with no error.

Unfortunately I'm not a ruby developer so I've no clue about how to debug /Applications/Emacs.app/Contents/MacOS/Emacs

Can you help me?

My system:

% sw_vers
ProductName:    macOS
ProductVersion: 11.6
BuildVersion:   20G165

% uname -mrs 
Darwin 20.6.0 arm64
caldwell commented 2 years ago

This should be fixed in tomorrow's Nightly build, 2022-04-06.

erikmd commented 2 years ago

Just to confirm, the problem is resolved with the current release of Emacs from Homebrew Cask (GNU Emacs 28.1). So, let's close this issue. Thanks a lot @caldwell :)