lottie-react-native: "react/bridging/AString.h" file not found

"lottie-ios": "^3.4.0",
"lottie-react-native": "^5.1.4",
"react-native": "^0.70.5",

Expected behavior: Build should succeed.

Actual behavior: Even though the file is present in node_modules/react-native/ReactCommon/react/bridging/AString.h. It throws an error Could not build Objective-C module 'React' "react/bridging/AString.h" file not found

Also tried solution as present here https://github.com/lottie-react-native/lottie-react-native/issues/708#issuecomment-775175081

Versions

{
  npm: '8.19.2',
  node: '14.17.6',
  v8: '8.4.371.23-node.76',
  uv: '1.41.0',
  zlib: '1.2.11',
  brotli: '1.0.9',
  ares: '1.17.2',
  modules: '83',
  nghttp2: '1.42.0',
  napi: '8',
  llhttp: '2.1.3',
  openssl: '1.1.1l',
  cldr: '39.0',
  icu: '69.1',
  tz: '2021a',
  unicode: '13.0'
}

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 18

Most upvoted comments

Try it

yarn remove lottie-react-native
cd ios
pod install --repo-update
cd ..
yarn add lottie-react-native
cd ios
pod install --repo-update
cd ..
yarn ios

I solved problem. I missed yarn add lottie-ios@3.4.0