Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App reported as damaged and won't run #595

Open
machawk1 opened this issue Mar 6, 2025 · 4 comments
Open

App reported as damaged and won't run #595

machawk1 opened this issue Mar 6, 2025 · 4 comments

Comments

@machawk1
Copy link
Owner

machawk1 commented Mar 6, 2025

Consistent between homebrew and DMG'd .App installation. 594 has the trace on some intermittent issue with homebrew. WAIL 0.2025.03.03. Apple M3.

Image
@machawk1
Copy link
Owner Author

machawk1 commented Mar 6, 2025

Perhap quarantined a la https://www.reddit.com/r/macsysadmin/comments/13vu7f3/app_is_damaged_and_cant_be_opened_error_on_ventura/

Try doing
xattr -l /path/to/application.app
You'll probably find com.apple.quarantine listed. If so, you can get rid of it with
xattr -dr com.apple.quarantine /path/to/application.app
You might want to kill the other attributes it returns, as well.

Related, we might need to sign the app (see #183 and #530)

Aside: worked on getting Apple Dev creds for my org but the reset is sent to a Mac not in my immediate possession (i.e., not the MBP M3), so will need to circle back. That auth might only permit iOS development, so perhaps it's moot.

See also: ianmartinez/AsciiStudio#2 (comment)

Running the following fixed it for me:
sudo xattr -dr com.apple.quarantine /Applications/ASCII\ Studio.app

@machawk1
Copy link
Owner Author

machawk1 commented Mar 6, 2025

% xattr -l /Applications/WAIL.app
com.apple.provenance: 
com.apple.quarantine: 0181;67c9f804;Homebrew\x20Cask;72C1A7D3-F46B-4F1C-B9EC-6ED825CC5D4D

https://eclecticlight.co/2017/08/15/quarantined-more-about-the-quarantine-extended-attribute/ explains the role of the quarantine attribute. via https://github.com/orgs/Homebrew/discussions/4302

% codesign --verify --verbose /Applications/WAIL.app
/Applications/WAIL.app: invalid Info.plist (plist or signature have been modified)
In architecture: arm64

@machawk1
Copy link
Owner Author

machawk1 commented Mar 6, 2025

See https://gist.github.com/bpteague/750906b9a02094e7389427d308ba1002 for February 2025 instructions on signing.

@machawk1
Copy link
Owner Author

https://github.com/orgs/Homebrew/discussions/3348 describes the ``--no-quarantine'' flag that can be used so that macOS does not report the app as "damaged".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant