react-native-quick-crypto
react-native-quick-crypto copied to clipboard
Cannot build on Mac React Native 0.73.6 (endian.h file not found)
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
- Xcode 15.0, 15.1, 15.2 or 15.3
- React Native 0.73.6
- react-native-quick-base64: 2.0.8
- react-native-quick-crypto: 0.6.1
- OpenSSL 3.2.1 30 Jan 2024 (Library: OpenSSL 3.2.1 30 Jan 2024)
- Node v21.7.1
- fastlane 2.219.0
- cocoapods: stable 1.15.2
- GCC version: Apple clang version 15.0.0 (clang-1500.3.9.4) Target: x86_64-apple-darwin23.4.0 Thread model: posix
@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.
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.