V1.16.0 crashes on Intel macOS Ventura 13.7.5

Description

Error message when opening the app:

We encountered a problem with your local email database. We will now attempt to rebuild it.

Error: dlopen(/Applications/Mailspring.app/Contents/Resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node, 0x0001): tried: ‘/Applications/Mailspring.app/Contents/Resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Applications/Mailspring.app/Contents/Resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node’ (no such file), ‘/Applications/Mailspring.app/Contents/Resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’))

Pressing “Okay” just causes the error to show up again

To Reproduce…

  1. Update Mailspring

Expected Behavior

Usable app

Screenshots

Setup

  • OS and Version: macOS Ventura 13.7.5
    • Installation Method: .app
  • Mailspring Version: 1.16.0

I also have the same bug, on Sonoma.
I think @probablykasper have an Intel Mac like me, the problem probably comes from better-sqlite3 prebuilt drivers.

I have not been able to use MailSpring for the past few weeks. Here is the error I get: connect mailcore::IMAPSession:0x7ff7bfefefa8

  • OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE UNSELECT LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
    ssl connect imap.rapidrivermagazine.com 993 2
    ssl connect certificate ERROR 2

I tried all of the regular tries.

Same here, can reproduce on an Intel Mac. Reverting to 1.15.1 fixes it for me

See: Latest Mailspring update Intel MacOS fails to load - #7 by bengotow

There is a fix available.