margelo / react-native-quick-crypto

⚡️ A fast implementation of Node's `crypto` module written in C/C++ JSI
Other
688 stars 83 forks source link

Cannot build on Mac React Native 0.73.6 (endian.h file not found) #243

Closed lcampanis closed 4 months ago

lcampanis commented 5 months ago

Building on Mac OS Ventura or Sonoma with npx expo run:ios gives the following error:

› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » fastpbkdf2.c

❌  (node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.c:20:10)

  18 | #include <string.h>
  19 | #if defined(__GNUC__)
> 20 | #include <endian.h>
     |          ^ 'endian.h' file not found
  21 | #endif
  22 |
  23 | #include <openssl/sha.h>

› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » QuickCryptoModule.mm
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLVerifyInstaller.cpp
› Compiling react-native-quick-crypto Pods/react-native-quick-crypto » MGLUtils.cpp

Stack

boorad commented 4 months ago

@lcampanis can you try this in your package.json file: (we don't have it published to npmjs yet, working on it...)

  "react-native-quick-crypto": "^0.7.0-rc.4",

I'm curious if the issue persists. The example app is 0.72.7, but I'm using this new release candidate in an 0.73.6 app and I'm not seeing that error.

boorad commented 4 months ago

There are many 0.7.0-rc.x release candidates out now... Try the latest and see if it fixes this issue. If it does not, please reopen this issue.