lottie-react-native: The following Swift pods cannot yet be integrated as static libraries:
Hi! Im having this problem. Did yarn add lottie-react-native and yarn add lottie-ios@3.1.8 but when I do pod install i get this error:
Installing lottie-ios 3.1.9 (was 3.2.3) Installing lottie-react-native 4.0.2 (was 1.1.1-beta1) [!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod lottie-react-native depends upon React-Core, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set use_modular_headers! globally in your Podfile, or specify :modular_headers => true for particular dependencies.
Im using “react-native”: “^0.62.2”. Thanks!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20
Cocoapods version 1.9+ allows linking of Swift static libraries, add the following command to your Podfile:
use_frameworks! :linkage => :staticYou may not need to use use_frameworks! or use_modular_headers! because it’s getting conflict with use_flipper
You can add the following without using them:
Don’t say thank you
Same issue
I am experiencing the same issue. Have you found a solution yet?