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

Most upvoted comments

Cocoapods version 1.9+ allows linking of Swift static libraries, add the following command to your Podfile:

use_frameworks! :linkage => :static

You 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:

pod ‘Firebase’, :modular_headers => true pod ‘FirebaseCoreInternal’, :modular_headers => true pod ‘GoogleUtilities’, :modular_headers => true #…add any library need headers

Don’t say thank you

I have the same error with expo eas build, how fix them

I am experiencing the same issue. Have you found a solution yet?