-
Notifications
You must be signed in to change notification settings - Fork 14
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 "damaged" for GitHub Release DMG downloads (for 8.x+) #244
Comments
"quarantine" xattrOh hey, check this out:
Sure enough, when I did Looks like the "unsigned/downloaded from internet" dialog can now manifest as an "app is damaged" error. Doing a right-click, Open on the app didn't change anything; same "app is damaged" error. I have my System Settings for Gatekeeper set to "Allow applications downloaded from: App store and identified developers". I'm guessing macOS is getting more restrictive about this, and took away the "open anyway" option in the right-click Open dialog somewhere in mac OS 12 through 14. On my "sonny" test box, I did Maybe I need to do tweak the internet-enable on the DMG file in create-dmg to avoid this? |
Tried the
Looks like a bad symlink, maybe due to Homebrew rearranging itself.
Anyway, after that, the app launched, and would plot and run the test suite OK. Tried it on sontel, my clean Intel testbed VM on angharad.
App launched, plotting and test suite ran. This workaround is looking okay. |
Tried un-quarantining the DMG file first, before installing to /Applications. On angharad, using a fresh download just now:
Double-clicked the DMG and dragged the app to the Applications drop link. Looks clean.
Double-clicked the app, and it launched okay, and ran the test suite. I think that implies the taint on all the files is picked up during the DMG extraction, so untainting the DMG itself prevents the /Applications app from being quarantined in the first place. Tried on sontel, my clean testbed macOS 14 Intel VM, with a fresh download:
After installing by dragging to the drop target in the DMG Finder view:
App launches with no error, plots, and runs the test suite. This version of the workaround is looking good. I think I like this approach of un-quarantining the DMG first better: it's faster, it doesn't require |
Now here's something interesting: Maybe that would be easier to get working than codesigning the whole app. I don't know how DMG signing works, but I'd assume that it's a simpler bulk signing of the entire filesystem state as like a big blob, and that's immutable, so might be simpler, and not affected by any symlinks or other oddness in the app bundle that make code signing the app not work. |
Oh hey, this article about "Gatekeeper Path Randomization aka App Translocation" might explain why this problem presents itself as and "app damaged" error: https://mjtsai.com/blog/2016/06/16/gatekeeper-path-randomization/ |
Changing this ticket's milestone from 8.4.0 to The Future, since I think we're stuck with the xattr workaround for the time being, and I don't see myself getting this fixed for any particular release in the near future. |
Looks like we've got a publishing or file hosting problem here.
When trying to publish the 8.3.0 and 8.4.0 alpha1 builds, if I install Octave.app from a DMG that was built locally, or I copied to the test VM over the LAN from the build host, then it works. But if I install it from a DMG downloaded from the GitHub Releases release page that I uploaded it to, the app fails to launch, with an error saying it is "damaged" and should be deleted.
The SHA sums for the two DMG files are identical, so the file contents seem the same, but it's pretty reproducible. Maybe something else is going on, like "download tainting" or other file metadata.
Other users can reproduce the behavior with the "damaged" app on the GitHub-download DMG.
Symptoms
Happened on both the 8.3.0 alpha1 and 8.4.0 alpha1 builds. Same problem on both Intel and Apple Silicon. Has been happening consistently for all DMGs I've uploaded to GitHub Releases for this 8.x series; no successful ones.
SHA sums are the same, seeming to indicate the file contents are the same:
References
Ideas
cp
tobuild/
is dropping an important xattr? Compare xattrs.The text was updated successfully, but these errors were encountered: