Closed MagicLizi closed 5 years ago
AFAIK you can’t require it but you may compile with the binary and require self
thx ! Is there an example for leveldown-mobile on iOS
yes, getting same error when using level down module in iOS with nodejs-mobile . Any idea how to fix it. I am using it in iOS (swift) native application.
_Error: dlopen(/private/var/mobile/Containers/Data/Application/F96F1926-4901-4103-AE41-D57EB4FB234F/Documents/nodejs-project/api/node_modules/leveldown/build/Release/leveldown.node, 1): no suitable image found. Did find: /private/var/mobile/Containers/Data/Application/F96F1926-4901-4103-AE41-D57EB4FB234F/Documents/nodejs-project/api/node_modules/leveldown/build/Release/leveldown.node: mach-o, but wrong architecture /private/var/mobile/Containers/Data/Application/F96F1926-4901-4103-AE41-D57EB4FB234F/Documents/nodejs-project/api/nodemodules/leveldown/build/Release/leveldown.node: mach-o, but wrong architecture
I use leveldown-mobile with nodejs-mobile-react-native on iOS when I require(leveldown.node) I get the issue,please help me