Skip to content
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

[cli] Fix mmkv-node not building x64 bindings #164

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

gabrieldonadel
Copy link
Member

Why

Fix #18 (comment)

The is CLI instacrashing on x64 machines with the following error "mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))". That's because nodejs-mmkv only includes bindings for the current running architecture.

How

Unfortunately nodejs-mmkv does not allow us to build node bindings for multiple architectures (arm64 and x64), which is a requirement for us given that we support both Apple silicon and Inter processors. To fix this I create a fork, mmkv-node-bindings, which allows us to specify the architectures that we want to build through a package.json field. This fork also includes the correct TS typings

Test Plan

archive cli and run it on arm64 and x64

@gabrieldonadel gabrieldonadel merged commit c3b3f1b into main Feb 5, 2024
1 check passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/mmkv-x64 branch February 5, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] it's possible to bypass initial setup screen and be stuck afterwards
2 participants