You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot install MarkText 0.17.0rc2-arm64 on M1 MacBook Air #2983
🪲 pri/majorBugs will affect your normal use of Mark Text, causing you unwilling or unable to continue using MT🍏 platform/macOSPull request or issue on macOS🐛 bugSomething isn't working
Hi, I'm on an M1 MacBook Air and the ARM64 release candidate application is corrupted no matter how many times I download it (be it the .dmg or the .zip). The checksum works out fine, so I'm confused as to what could be causing this. The x64 version works perfectly fine, in contrast.
Can you reproduce the issue?
Steps to reproduce
Download the 0.17.0rc2-arm64 version and try to install it.
Expected behavior:
Normal installation
Actual behavior:
Versions
MarkText version: 0.17.0rc2-arm64
Operating system: macOS 12.2 Monterey
Reacted by Mehdi Nourollah, Anton Beer, SUNGBUM PARK, Victor Nogueira, dovvakkin, Alexander Terp, Robert, PiN73, cycychenyi, LiuShihao and 12 more
New in macOS 11 on Macs with Apple silicon, and starting in macOS Big Sur 11 beta 6, the operating system enforces that any executable must be signed before it’s allowed to run. There isn’t a specific identity requirement for this signature: a simple ad-hoc signature is sufficient. [...] This new policy doesn’t apply to translated x86 binaries running under Rosetta 2, nor does it apply to macOS 11 running on Intel-based platforms.
@Jocs We need code signing on macOS to fix this, but notarization isn't required. Both can be done via electron-builder and integrated into the CI pipeline.
This requires registration of an apple developer account before code sign, which costs about $99/year, and we do not plan to sign marktext now, one reason is that marktext is not stable enough, and the other is that we do not have a stable financial donations to pay $99/year.
Reacted by VampireAchao, cycychenyi, hj5230, Sebastian Wagner and Wu Jia Lin
Hi, I know it is sort of a hot-fix to get MarkText running, but the following command did the trick for me on an M1 MBA running macOS v12.1:
xattr -cr /Applications/MarkText.app
Reacted by Haoan Li, Sandeep Pandey, lixin, René Schwaiger, Leezicai, nokoa, SJTang1995, Robert McAbee, Daniel Dymond, Yore New and 152 more
Reacted by Jeremy Laviole, jxzy999, whyisyoung, Kakusi-IO, Benedikt Scheffbuch, Franklin, Victor Nogueira, Nevena, Peter Arsenault, Nickolas Reimschiissel and 18 more
Reacted by calico-bl, Tian,Kun, jxzy999, whyisyoung, blowinthesleep, Josua Köhler, Franklin, Nevena, goddog, Peter Arsenault and 29 more
Hi, I know it is sort of a hot-fix to get MarkText running, but the following command did the trick for me on an M1 MBA running macOS v12.1:
xattr -cr /Applications/MarkText.app
That worked for me as well, thank you so much!
Reacted by calico-bl, Muhammad Zeeshan, VampireAchao, Callanna, mi-2, Nickolas Reimschiissel, Francesco Cariaggi, Jase Lindgren, Mahesh CR, hello-sgy and 16 more
We decided to not release an Apple M1 (arm64) package for version 0.17.0 because the package is block by macOS without code signing. We'll consider this issues in future releases but we don't want to confuse users with "broken binaries". You can still install the x64 binary or build MarkText for arm64 on macOS and install it yourself bypassing security mechanism.
Edit: Maybe the Homebrew maintainers can get this working because they install MarkText locally?
Most macOS users have seen this "damaged application" message and have learned to easily work around it by right clicking the application icon and choosing "Open."
It's only needed the first time. macOS remembers from that point on that the application is not in fact damaged at all. It's no longer in quarantine.
Reacted by Abhirath Anand, Endogen and VampireAchao
Most macOS users have seen this "damaged application" message and have learned to easily work around it by right clicking the application icon and choosing "Open."
Hey, thanks for your feedback. As far as I know is code signing required on M1 devices and manually running xattr is the only way bypassing it. Normally there shouldn't be an "open" option, but I don't own a macOS device. After a quick research I come to the conclusion that
each user have to run xattr after downloading the app or
we have to sign the package using apple developer id.
I guess the least intrusive change, which worked for me on an M2 (14.4.1), would be to only remove the attribute "com.apple.quarantine" of the folder, non-recursively:
That said, for now I'm giving up on marktext, because the latest release is 2 years old (and does not seem to support modern mermaid diagrams), and when trying to build the develop branch, the first "yarn install" step already fails (I haven't tried to dig into this):
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/keymapping/src/string_conversion.o
CXX(target) Release/obj.target/keymapping/src/keymapping.o
../src/keymapping.cc:99:18: error: no matching function for call to 'napi_create_threadsafe_function'
NAPI_CALL(env, napi_create_threadsafe_function(env, func, NULL, resource_name, 0, 1, NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/common.h:72:23: note: expanded from macro 'NAPI_CALL'
NAPI_CALL_BASE(env, the_call, NULL)
^~~~~~~~
../src/common.h:64:10: note: expanded from macro 'NAPI_CALL_BASE'
if ((the_call) != napi_ok) { \
^~~~~~~~
/Users/eugen/Library/Caches/node-gyp/21.7.1/include/node/node_api.h:205:1: note: candidate function not viable: no known conversion from 'void (napi_env, void *, void *)' (aka 'void (napi_env__ *, void *, void *)') to 'node_api_nogc_finalize' (aka 'void (*)(const napi_env__ *, void *, void *)') for 8th argument
napi_create_threadsafe_function(napi_env env,
^
1 error generated.
make: *** [Release/obj.target/keymapping/src/keymapping.o] Error 1
The solution with xattr -cr in the terminal also worked for me but it is even possible to reach the same result in Mac OS 15 via graphic interface:
-run the app ones
-click on Done when the error pops up
go to System Settings, then Privacy and Security and scroll down until the tab Security
Click on Open Anyway for the .dmg of MarkText
enjoy MarkText!
Works also for other software that doesn't have the signature (Tested on MacBook Air M3).
I want to reinforce what @amterp said...the documentation should be modified to make it extremely obvious to the Mac user that the only way to run this application is to bypass Apple's security mechanism, and provide clear instructions (as already mentioned in this thread) how to do so. This comment should be prominent, and located where the reader will find it ASAP.
To leave the documentation as is is a colossal waste of time for a multitude of users, and drives many away from using this great application at all. I almost gave up but decided to give it one more try, and now I have it working.
To the author, I'm sorry to be so blunt, I appreciate your time and effort, but inaction here is a huge disservice to the open source community. I volunteer to create a PR to modify the documentation if you are open to it.
I just ran into this issue an noticed different behavior from different sources. I do not get the damaged message when I install from this link from the dev website.
Hi, I know it is sort of a hot-fix to get MarkText running, but the following command did the trick for me on an M1 MBA running macOS v12.1:
This went smoothly for me on a MacMini M2 running Ventura. I also wanted to say that the instruction which appeared in the Terminal after installing with Homebrew was perfectly fine. Clicking on the link brought me here, and then copy-pasting your line solved the issue. Many thanks!
I am running MacOS Sequoia 15.4.1. And get the damaged error both with the 0.17.1 either installed via homebrew or via the dmg from the release. Any advice for a fix?
🪲 pri/majorBugs will affect your normal use of Mark Text, causing you unwilling or unable to continue using MT🍏 platform/macOSPull request or issue on macOS🐛 bugSomething isn't working
Activity
fxha commentedon Feb 6, 2022
@Jocs We need code signing on macOS to fix this, but notarization isn't required. Both can be done via electron-builder and integrated into the CI pipeline.
Source: https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-universal-apps-release-notes
Jocs commentedon Feb 7, 2022
This requires registration of an apple developer account before code sign, which costs about $99/year, and we do not plan to sign marktext now, one reason is that marktext is not stable enough, and the other is that we do not have a stable financial donations to pay $99/year.
sirykd commentedon Feb 9, 2022
Hi, I know it is sort of a hot-fix to get MarkText running, but the following command did the trick for me on an M1 MBA running macOS v12.1:
theabhirath commentedon Feb 10, 2022
That worked for me as well, thank you so much!
sirykd commentedon Feb 10, 2022
You're welcome :)
fxha commentedon Feb 22, 2022
We decided to not release an Apple M1 (arm64) package for version 0.17.0 because the package is block by macOS without code signing. We'll consider this issues in future releases but we don't want to confuse users with "broken binaries". You can still install the x64 binary or build MarkText for arm64 on macOS and install it yourself bypassing security mechanism.
Edit: Maybe the Homebrew maintainers can get this working because they install MarkText locally?
johnblommers commentedon Feb 23, 2022
Most macOS users have seen this "damaged application" message and have learned to easily work around it by right clicking the application icon and choosing "Open."
It's only needed the first time. macOS remembers from that point on that the application is not in fact damaged at all. It's no longer in quarantine.
Endogen commentedon Feb 23, 2022
@johnblommers Definitely also think it's not an issue for users. It's normal
fxha commentedon Feb 23, 2022
Hey, thanks for your feedback. As far as I know is code signing required on M1 devices and manually running
xattris the only way bypassing it. Normally there shouldn't be an "open" option, but I don't own a macOS device. After a quick research I come to the conclusion thatxattrafter downloading the app orI'm happy to hear other suggestions to fix this.
21 remaining items
arcataroger commentedon Nov 19, 2023
Thank you! This worked for me too.
Leeei-ZS commentedon Nov 28, 2023
it worked!!!
EugenDueck commentedon Apr 6, 2024
I guess the least intrusive change, which worked for me on an M2 (14.4.1), would be to only remove the attribute "com.apple.quarantine" of the folder, non-recursively:
That said, for now I'm giving up on marktext, because the latest release is 2 years old (and does not seem to support modern mermaid diagrams), and when trying to build the develop branch, the first "yarn install" step already fails (I haven't tried to dig into this):
franklouwers commentedon Sep 12, 2024
@EugenDueck what did you switch to?
federicoscarpioni commentedon Nov 5, 2024
The solution with xattr -cr in the terminal also worked for me but it is even possible to reach the same result in Mac OS 15 via graphic interface:
-run the app ones
-click on Done when the error pops up
Works also for other software that doesn't have the signature (Tested on MacBook Air M3).
keithrbennett commentedon Jan 22, 2025
I want to reinforce what @amterp said...the documentation should be modified to make it extremely obvious to the Mac user that the only way to run this application is to bypass Apple's security mechanism, and provide clear instructions (as already mentioned in this thread) how to do so. This comment should be prominent, and located where the reader will find it ASAP.
To leave the documentation as is is a colossal waste of time for a multitude of users, and drives many away from using this great application at all. I almost gave up but decided to give it one more try, and now I have it working.
To the author, I'm sorry to be so blunt, I appreciate your time and effort, but inaction here is a huge disservice to the open source community. I volunteer to create a PR to modify the documentation if you are open to it.
InSasquatchCountry commentedon Jan 23, 2025
I just ran into this issue an noticed different behavior from different sources. I do not get the damaged message when I install from this link from the dev website.
website → https://github.com/marktext/marktext/releases/latest/download/marktext-x64.dmg
vs
homebrew → https://github.com/marktext/marktext/releases/download/v0.17.1/marktext-x64.dmg
I DO get "“MarkText.app” is damaged ...t to the Trash" when I installing via
$ brew install mark-text$ brew info --github mark-texttakes me here: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/m/mark-text.rb
Again, when I install from the website's latest link,
This would imply to me that something is different with the file homebrew is linking to for 0.17.1 causing this behavior.
While its good to have now learned how to use quarantine, it seems like an unnecessary step for us macOS users.
My Machine:
MacBookPro 17,1 13-inch 2020 Apple M1
macOS Sequoia 15.2
Heerweg commentedon Feb 13, 2025
This went smoothly for me on a MacMini M2 running Ventura. I also wanted to say that the instruction which appeared in the Terminal after installing with Homebrew was perfectly fine. Clicking on the link brought me here, and then copy-pasting your line solved the issue. Many thanks!
soelu commentedon May 9, 2025
I am running MacOS Sequoia 15.4.1. And get the damaged error both with the 0.17.1 either installed via homebrew or via the dmg from the release. Any advice for a fix?
TekGeekdev commentedon Oct 13, 2025
Thank you a lot that's working on m4
kopach commentedon Oct 13, 2025
There is another option, install using Homebrew with
--no-quarantineflag like soworks for me
Jocs commentedon May 25, 2026
It should now work on arm macOS systems. Please try downloading the rc version.
usr42 commentedon Jun 6, 2026
@Jocs The builds are still unsigned, aren't they? Would donations help? See also my comment #3991 (comment)