xmtp / xmtp-react-native

A package you can use to build with XMTP in a React Native or Expo app.
MIT License
35 stars 15 forks source link

Bug: Build failed with 'openssl_grpc/base.h' file not found #97

Open Bob-JZhao opened 10 months ago

Bob-JZhao commented 10 months ago

Describe the bug

After run 'yarn add @xmtp/react-native-sdk' got 'openssl_grpc/base.h' file not found error when build the app.

I am using bare react-native app and follow https://docs.expo.dev/bare/installing-expo-modules/ install the related expo module

image

Expected behavior

No response

Steps to reproduce the bug

No response

hyang74 commented 10 months ago

cc @fabriguespe looks like a firebase-related issue: https://github.com/jmcnamara/libxlsxwriter/issues/342

graphicstone commented 10 months ago

Any solution to this issue, I am also stuck with the same issue.

I am using Flutter, and adding Web3Auth is giving me this same error.

VIVEK-SUTHAR commented 6 months ago

I am also facing the same Issue.

image

I am using Expo SDK 48 With Expo Prebuild And Already Set the deploymentTarget to 16.0 Tried to clean build , but it fails with the same error

VIVEK-SUTHAR commented 6 months ago

I tried to create a minimal reproducible example.

When I added @react-native-firebase/firestore": "^16.7.0", the build started to fail. Upon inspecting the Pods, I observed that adding firestore introduced the BoringSSL-GRPC Pod.

Subsequently, when I attempted to build the project, it failed with the error stated in above comment. However, if I remove it, the build is successful.

Here's the my environment info

expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 14.0
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.19.0 - /opt/homebrew/opt/node@18/bin/node
      Yarn: 1.22.19 - /opt/homebrew/bin/yarn
      npm: 9.9.2 - ~/Documents/Projects/personal/rn-xmtp/node_modules/.bin/npm
      Watchman: 2023.12.04.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.13.0 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
    IDEs:
      Android Studio: 2022.3 AI-223.8836.35.2231.10811636
      Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~48.0.21 => 48.0.21 
      react: 18.2.0 => 18.2.0 
      react-native: 0.71.14 => 0.71.14 
    npmGlobalPackages:
      eas-cli: 5.9.3
      expo-cli: 6.3.10
    Expo Workflow: bare
alexrisch commented 6 months ago

Hello! 👋 Thank you for the additional information, for my understanding, if you remove the xmpt react native package is it still erroring on pod install?

VIVEK-SUTHAR commented 6 months ago

Yea, When We have not added the XMTP Package In the App, The build was fine. Here is my observation

  1. For testing, I bootstrapped one example app with same config as current app, and added XMTP SDK,The Build was fine, and as soon as I add @react-native-firebase/firestore , the build fails.
  2. If I remove the @react-native-firebase/firestore or XMTP SDK , the build is fine.

From this, I guess that there is dependency conflict between @react-native-firebase/firestore and XMTP SDK

UnsignedInt8 commented 3 months ago
image

Same issue here.