Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

IOS wrong architecture : leveldown-nodejs-mobile #23

Open
Linoy339 opened this issue Aug 4, 2020 · 2 comments
Open

IOS wrong architecture : leveldown-nodejs-mobile #23

Linoy339 opened this issue Aug 4, 2020 · 2 comments

Comments

@Linoy339
Copy link

Linoy339 commented Aug 4, 2020

Hi,
I am getting this error while we try compiling using leveldown-nodejs-mobile.

{ Error: dlopen(/private/var/mobile/Containers/Data/Application/D1BA5C5F-4140-4E74-86E9-DA126EA579D2/Documents/nodejs-project/api/node_modules/leveldown/build/Release/leveldown.node, 1): no suitable image found. Did find:
/private/var/mobile/Containers/Data/Application/D1BA5C5F-4140-4E74-86E9-DA126EA579D2/Documents/nodejs-project/api/node_modules/leveldown/build/Release/leveldown.node: mach-o, but wrong architecture
/private/var/mobile/Containers/Data/Application/D1BA5C5F-4140-4E74-86E9-DA126EA579D2/Documents/nodejs-project/api/node_modules/leveldown/build/Release/leveldown.node: mach-o, but wrong architecture
at bindings (/private/var/mobile/Containers/Data/Application/D1BA5C5F-4140-4E74-86E9-DA126EA579D2/Documents/nodejs-project/api/node_modules/bindings/bindings.js:121:9)

Do any body have a resolution.
Thanks in advance

@Linoy339
Copy link
Author

Linoy339 commented Aug 4, 2020

Hi all,
I am trying to establish offline db using pouch db in mobile.
As the leveldown did not work in mobile, I followed the link below:
https://www.npmjs.com/package/leveldown-nodejs-mobile
and installed it.
This says that it supports IOS and Android. But the result is an error "no suitable image found".

Can somebody help on this?

@IbrahimCanKALYA
Copy link

@Linoy339 did u find any solution of this issue because i'm getting same error with node-re2 lib on react-native
thank in advence

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants