[Bug]: Mac arm64 version broken
Guidelines
- [x] I have encountered this bug in the latest release of FreeTube.
- [x] I have encountered this bug in the official downloads of FreeTube.
- [x] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
- [x] I have searched the documentation for information that matches the description of the bug I want to file, without success.
- [x] This issue contains only one bug.
Describe the bug
- Download the latest Mac AppImage for arm64
- Click it
- Get a popup error "FreeTube" is damaged and can't be opened. You should move it to the Trash.
This only happens on the ARM build. The X64 Mac version works normally.
Expected Behavior
Application starts
Issue Labels
causes crash
FreeTube Version
v0.23.0
Operating System Version
macOS Sequoia 15.3
Installation Method
.dmg
Primary API used
Local API
Last Known Working FreeTube Version (If Any)
v0.22.1
Additional Information
The ARM version appears to be broken in general as I've tried the .dmg, the .zip, the .7z, and even from source and all versions were reported damaged. Currently having to run the x64 version through Rosetta 2.
Nightly Build
- [ ] I have encountered this bug in the latest nightly build.
Just execute the following in terminal and it should work:
xattr -d com.apple.quarantine /Applications/FreeTube.app
As already mentioned in a few other threads, macOS lying to you, it isn't broken, it's just that we aren't paying Apple loads of money to get the app signed. You need to allow FreeTube to run in the security settings on your Mac or run xattr -d com.apple.quarantine /Applications/FreeTube.app in your terminal (you'll have to do these steps every time you update FreeTube).
I think it would make sense to leave one issue about this topic open, this way users can find the solution to the problem they are facing easier and it will avoid duplicates.
Add a note to the Download page on https://freetubeapp.io/ advising that this action needs to take place. Note, may also be able to use System Settings > Privacy & Security > Security > Open Anyway (works on earlier macOS).
Perhaps this command should be shown in the download page once of the ARM builds is requested? Or perhaps even persistently as a little note box? Otherwise people like myself, as technical as we are, think something is wrong. Because the message is clearly "broken" not "uncertified".
Apple is doing some insane stuff here with bad messaging, no doubt about it. But needing to see this message then come hunt for a solution isn't a good experience. Especially when a quick note on the page about it would bring the solution to the front for people.
The message for uncertified is different from the damaged message. The damaged message indicates a problem with the ELF header and will not work. Uncertified means you just have to manually bypass the security settings but it will work.
I was able to download and install the x64 version and worked with the expected uncertified message. This should not be the case. I should get the damaged message from any x64 software. I have no x64 emulation installed.
MacOS shows the uncertified error for x64 binaries as that is also what they do on the x86_64. With arm64 binaries on an am64 mac Apple is a lot more aggressive in their messaging. If it were actually damaged it wouldn't run even after removing the quarantine flag. Apple likes money hence their policy of "if the developer hasn't paid the ransom, punish the users, hopefully they'll complain enough that the developers will pay". Except that that really doesn't work for open source projects like FreeTube that aren't tied to one specific person or company, so signing it saying it is tied to a certain real person would just be a lie, a waste of money and would dox someone pointlessly.
As already mentioned in a few other threads, macOS lying to you, it isn't broken, it's just that we aren't paying Apple loads of money to get the app signed. You need to allow FreeTube to run in the security settings on your Mac or run
xattr -d com.apple.quarantine /Applications/FreeTube.appin your terminal (you'll have to do these steps every time you update FreeTube).
Well that's a new tactic, lying about an app being broken. Just when I thought Apple couldn't sink any lower. (I hate that macOS is my favorite OS sometimes)
Yeah it doesn't appear in security settings since the OS lies saying it's broken so I had to run the terminal command. That needs to get mentioned on the downloads page otherwise non-tech savvy Mac users (AKA most of them) are gonna assume the app is busted.
Hello there, came here via a web search for this apparently new behavior w/ 0.23 (coming from 0.22) on arm64.
It's really shameful Apple twists the messaging here, AFAIK it used to not be reported as broken before w/ 0.22.x. I would add a security exception via the General Settings/Gatekeeper and things would be fine.
Due to the messaging I've redownloaded the archive several times :-( Indeed it's not about corruption since it works immediately following the xattr command 😠
Thanks to you guys for the super useful app and the help as well !
The reason you didn't get the same messaging with previous versions if because we only provided amd64/x86_64 macOS builds, with the most recent releases we also provide arm64 macOS builds and the arm64 builds are what get the inaccurate messaging from macOS (the x64 ones get the same treatment as on Intel Macs). So if you downloaded the x64 build instead of the arm64 build, you would get the old messaging again.
Thank you for the explanation. I understand now why the previous versions did not exhibit the behavior (as those were amd64 only running under emulation). Still very twisted mindset from Apple with their messaging (why not just mention the app needs to be signed?)
As already mentioned in a few other threads, macOS lying to you, it isn't broken, it's just that we aren't paying Apple loads of money to get the app signed. You need to allow FreeTube to run in the security settings on your Mac or run
xattr -d com.apple.quarantine /Applications/FreeTube.appin your terminal (you'll have to do these steps every time you update FreeTube).
Can someone make this instruction easier to find on the website?
This [1] is fixable on FreeTube's side without paying Apple. I opened a PR that does so (#7140).
It seems like electron-builder is doing some kind of modifications after linking [2] which breaks the automatic ad-hoc signature, leading to the "app is damaged" warning everyone is seeing.
[1] By "this" I'm referring to the "damaged" messaging. Gatekeeper will still reject the app; you can't avoid that without paying and notarizing. But with the fix, you'll get a normal "unverified" warning and users can follow the relevant instructions to bypass the warning in the GUI without needing to use xattr or similar commands, leading to the same experience on ARM and x64.
[2] On ARM Macs, when you build an executable, it is automatically ad-hoc signed (signed without an identity) at linking time by the linker to try to make it easier to meet the signature requirement. However, modifications after this point can break this signature, which requires manually re-signing.
I’ve upgrade Freetube to freetube-0.23.4 beta version for Mac, I still can’t watch any video. Could you help me please ?