Help Center/ Meeting/ Client SDK Reference/ FAQs/ Electron SDK/ What Should I Do If an Error Message Indicating that the Arm64 Architecture Is Required Is Displayed When I Run the Electron SDK on My MacBook?
Updated on 2024-07-30 GMT+08:00

What Should I Do If an Error Message Indicating that the Arm64 Architecture Is Required Is Displayed When I Run the Electron SDK on My MacBook?

Customer Case

After the Electron SDK is integrated with macOS, when the SDK is started, the error message have(x86_64), need(arm64) is displayed, indicating that the architecture is incorrect.

Cause Analysis

The native UI SDK of macOS does not support Arm64. It supports only x86_64.

Solution

1. Set export npm_config_arch to x64 to specify the x64 platform for Node.js.

2. Delete the downloaded node_modules folder.

3. Run the project again. To debug the demo, run the run_demo_mac.sh script.