DescentDevelopers / Descent3

Descent 3 by Outrage Entertainment
GNU General Public License v3.0
2.85k stars 243 forks source link

[Runtime Issue]: Unable to run on MacOS ARM - “Descent3” is damaged and can’t be opened. You should move it to the Trash. #559

Open phubbard opened 2 weeks ago

phubbard commented 2 weeks ago

Build Version

v1.5.0

Operating System Environment

CPU Environment

Game Modes Affected

Game Environment

No response

Description

Setting the executable bit seems to break the binary signature, so the came can't run.

Regression Status

No response

Steps to Reproduce

Download the release Install as per instructions Set executable bit as per readme with chmod 755 Descent3.app/Contents/MacOS/Descent3 Try to run, either via terminal or Finder. Get “Descent3” is damaged and can’t be opened. You should move it to the Trash.

tophyr commented 2 weeks ago

Same issue as #540

Kreeblah commented 2 days ago

This will be fixed whenever #540 happens, but in the meantime, as a workaround, folks can apply ad-hoc codesigning to work around it. That's sufficient for ARM macOS versions to allow binaries to run and is, for example, what the Homebrew team is doing for binaries that they distribute.

So, in this case, running codesign --force --deep --preserve-metadata=entitlements,requirements,flags,runtime --sign - Descent3.app/Contents/MacOS/Descent3 should at least resolve running it from the terminal. I can't remember offhand whether the same also needs to be done to the bundle itself to run that, though I imagine that trying to do that would end up running into the same issue I did in #532.