Skip to content

Cannot install MarkText 0.17.0rc2-arm64 on M1 MacBook Air #2983

Closed

Description

@theabhirath

Description

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:
Screenshot 2022-02-06 at 3 02 50 PM

Versions

  • MarkText version: 0.17.0rc2-arm64
  • Operating system: macOS 12.2 Monterey

Activity

  1. fxha commented on Feb 6, 2022

    @fxha
    Contributor

    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.

    Source: https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-universal-apps-release-notes

  2. added
    🪲 pri/major
    🍏 platform/macOS
    🐛 bug
    on Feb 6, 2022
  3. Jocs commented on Feb 7, 2022

    @Jocs
    Member

    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.

  4. sirykd commented on Feb 9, 2022

    @sirykd

    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
  5. theabhirath commented on Feb 10, 2022

    @theabhirath
    Author

    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!

  6. sirykd commented on Feb 10, 2022

    @sirykd

    That worked for me as well, thank you so much!

    You're welcome :)

  7. fxha commented on Feb 22, 2022

    @fxha
    Contributor

    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?

  8. johnblommers commented on Feb 23, 2022

    @johnblommers

    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.

  9. Endogen commented on Feb 23, 2022

    @Endogen

    @johnblommers Definitely also think it's not an issue for users. It's normal

  10. fxha commented on Feb 23, 2022

    @fxha
    Contributor

    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

    1. each user have to run xattr after downloading the app or
    2. we have to sign the package using apple developer id.

    I'm happy to hear other suggestions to fix this.

  11. 21 remaining items

  12. arcataroger commented on Nov 19, 2023

    @arcataroger

    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

    Thank you! This worked for me too.

  13. Leeei-ZS commented on Nov 28, 2023

    @Leeei-ZS

    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

    it worked!!!

  14. EugenDueck commented on Apr 6, 2024

    @EugenDueck

    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:

    xattr -d com.apple.quarantine /Applications/MarkText.app

    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
    
  15. franklouwers commented on Sep 12, 2024

    @franklouwers

    @EugenDueck what did you switch to?

  16. federicoscarpioni commented on Nov 5, 2024

    @federicoscarpioni

    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).
  17. keithrbennett commented on Jan 22, 2025

    @keithrbennett

    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.

  18. InSasquatchCountry commented on Jan 23, 2025

    @InSasquatchCountry

    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-text
    takes 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,

    • I mount the .dmg
    • drag the .app into my Applications folder
    • and only have to do the normal "Apple could not verify..." shuffle common for 3rd party apps.

    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

  19. Heerweg commented on Feb 13, 2025

    @Heerweg

    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!

  20. soelu commented on May 9, 2025

    @soelu

    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?

  21. TekGeekdev commented on Oct 13, 2025

    @TekGeekdev

    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

    Thank you a lot that's working on m4

  22. kopach commented on Oct 13, 2025

    @kopach

    There is another option, install using Homebrew with --no-quarantine flag like so

    brew install --cask --no-quarantine mark-text

    works for me

  23. unpinned this issue on May 11, 2026
  24. Jocs commented on May 25, 2026

    @Jocs
    Member

    It should now work on arm macOS systems. Please try downloading the rc version.

  25. usr42 commented on Jun 6, 2026

    @usr42
    Sponsor

    @Jocs The builds are still unsigned, aren't they? Would donations help? See also my comment #3991 (comment)

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

Metadata

Metadata

Assignees

Labels

🪲 pri/major🍏 platform/macOS🐛 bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions