nodejs-mobile / nodejs-mobile-react-native

Node.js for Mobile Apps React Native plugin
https://nodejs-mobile.github.io
MIT License
174 stars 42 forks source link

Can't run iOS Simulator debug mode on a M1 MBP due to dylib #7

Closed Dwynr closed 9 months ago

Dwynr commented 2 years ago

First of all: amazing project! Everything works as expected, only one thing bugging me right now. I can't seem to build my app for the iOS Simulator on an M1 Max MBP.

[Xcode error 'building for iOS Simulator, but linking in dylib built for iOS .. for architecture arm64']

Launching XCode using Rosetta and then building using X86 works fine, but the performance using the X86 simulator is pretty bad compared to arm64. Also build times are like 3-6x times longer. Building the app using arm64 for an iPhone works as expected.

Any solution?

rockey2020 commented 2 years ago

same problem

Dwynr commented 2 years ago

I found out it's due to the prebuilt NodeMobile lib being compiled for x86 only, would be cool to get built instructions + instructions on how to include the arm64 lib into the package when it's built.

Building https://github.com/nodejs-mobile/nodejs-mobile using the M1 should work.

Dwynr commented 2 years ago

same problem

Found a solution yet?

rockey2020 commented 2 years ago

No idea, I have given up on this library, wait a year and then come back to see how this library develops

winionian commented 1 year ago

solve as I have mention at https://github.com/nodejs-mobile/nodejs-mobile-react-native/issues/10#issuecomment-1728708885

staltz commented 9 months ago

I can run nmrn apps on iOS Simulator as of version 18.17.4.

When describing a bug, please always specify which versions are pertinent.