Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error: module map /lottie-react-native/lottie_react_native.modulemap' not found

I am upgrading the react native version from 0.63.0 to 0.64.0 but I get this error when compiling? Do you know how to solve it?

fatal error: module map file '/Users/iteme/Library/Developer/Xcode/DerivedData/apparta-bdsropvgtdqyxfbzxyuwoltrneow/Build/Products/Debug-iphonesimulator/lottie-react-native/lottie_react_native.modulemap' not found

enter image description here

this is enviroment: "lottie-ios": "^3.1.8", "lottie-react-native": "^4.0.2", cocapods: 1.11.2

tried this but it did not work:

1-. rm -rf ~/Library/Developer/Xcode/DerivedData 2-. elimina Podfile.lock 3-. pod install

and

  1. react-native link

and

npm uninstall lottie-ios npm install [email protected] cd ios pod install

like image 877
edgar alfaro Avatar asked Oct 22 '25 06:10

edgar alfaro


2 Answers

If you are using a Mac with the Silicon chip and met this error with the iOS simulators, try to add arm64 to Excluded Architectures in Build Settings for both the app project and pod project, this works for me.

enter image description here

like image 132
Elan Avatar answered Oct 25 '25 13:10

Elan


Please try this solution. to would fix your problem. this issue is due to the static library. Here are some answers from stackoverflow and GitHub issues.

  • https://stackoverflow.com/a/56176956/9570734
  • https://github.com/lottie-react-native/lottie-react-native/issues/513#issuecomment-512530064
  • https://github.com/lottie-react-native/lottie-react-native/issues/513#issuecomment-521185372

Hope this will solve your issue

like image 27
Engr.Aftab Ufaq Avatar answered Oct 25 '25 12:10

Engr.Aftab Ufaq