Emurgo / csl-mobile-bridge

React-native bindings for Emurgo's cardano-serialization-lib (Cardano haskell Shelley)
MIT License
23 stars 12 forks source link

Install Error react-native-haskell-shelley on react native #76

Closed Thinhnguyen185 closed 1 year ago

Thinhnguyen185 commented 2 years ago

Dear team, I'm using your lib to integrate with Cardano chain. In process setup, I have error relate cc on my Mac (m1 pro, Mac OS Monterey 12.6) and xCode 14.0.1

Screen Shot 2022-10-06 at 13 57 05

react-native: 0.67.4 "@emurgo/react-native-haskell-shelley": "3.1.4",

stackchain commented 2 years ago

hey @Thinhnguyen185, you need an intel chip to compile it, we haven't optimized it for apple chips.

dynamicstrategies commented 1 year ago

Related to this: https://github.com/Emurgo/react-native-haskell-shelley/issues/81

To workaround this error on a Mac in the meantime you need 1- to make sure you add the right "rustup target ..." 2 - and you to amend the "build.sh" file as in this commit: https://github.com/Emurgo/yoroi-mobile/pull/2260/commits/07a99a4f10d8f0d281b60f28bce33edf7e82ef6f