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
After packaging Electron, others encounter an error when opening the application on their computer.
What happens?
The serialport relies on a dynamic link library of the local operating system, but some users have not installed this dylib.
Uncaught Exception:
Error: dlopen(/Applications/test.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/build/Release/bindings.node, 0x0001): Library not loaded: /opt/homebrew/opt/llvm/lib/libunwind.1.dylib
Referenced from: <046D978E-24B1-3B60-A5C6-2B997D1FA795> /Applications/test.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/build/Release/bindings.node
Reason: tried: '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' (no such file), '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' (no such file)
at process.func [as dlopen] (node:electron/js2c/node_init:2:2559)
at Module._extensions..node (node:internal/modules/cjs/loader:1470:18)
at Object.func [as .node] (node:electron/js2c/node_init:2:2786)
at Module.load (node:internal/modules/cjs/loader:1215:32)
at Module._load (node:internal/modules/cjs/loader:1031:12)
at c._load (node:electron/js2c/node_init:2:17025)
at Module.require (node:internal/modules/cjs/loader:1240:19)
at require (node:internal/modules/helpers:179:18)
at load (/Applications/test.app/Contents/Resources/app.asar/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object. (/Applications/test.app/Contents/Resources/app.asar/node_modules/@serialport/bindings-cpp/dist/load-bindings.js:11:46)
What should have happened?
Should not rely on local dynamic libraries.
Additional information
No response
The text was updated successfully, but these errors were encountered:
SerialPort Version
12.0.0
Node Version
v20.10.0
Electron Version
31.0.2
Platform
macOS 15.1.1
Architecture
ARM
Hardware or chipset of serialport
No response
What steps will reproduce the bug?
After packaging Electron, others encounter an error when opening the application on their computer.
What happens?
The serialport relies on a dynamic link library of the local operating system, but some users have not installed this dylib.
Uncaught Exception:
Error: dlopen(/Applications/test.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/build/Release/bindings.node, 0x0001): Library not loaded: /opt/homebrew/opt/llvm/lib/libunwind.1.dylib
Referenced from: <046D978E-24B1-3B60-A5C6-2B997D1FA795> /Applications/test.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/build/Release/bindings.node
Reason: tried: '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' (no such file), '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' (no such file)
at process.func [as dlopen] (node:electron/js2c/node_init:2:2559)
at Module._extensions..node (node:internal/modules/cjs/loader:1470:18)
at Object.func [as .node] (node:electron/js2c/node_init:2:2786)
at Module.load (node:internal/modules/cjs/loader:1215:32)
at Module._load (node:internal/modules/cjs/loader:1031:12)
at c._load (node:electron/js2c/node_init:2:17025)
at Module.require (node:internal/modules/cjs/loader:1240:19)
at require (node:internal/modules/helpers:179:18)
at load (/Applications/test.app/Contents/Resources/app.asar/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object. (/Applications/test.app/Contents/Resources/app.asar/node_modules/@serialport/bindings-cpp/dist/load-bindings.js:11:46)
What should have happened?
Should not rely on local dynamic libraries.
Additional information
No response
The text was updated successfully, but these errors were encountered: