Code Monkey home page Code Monkey logo

Comments (17)

momentiris avatar momentiris commented on June 14, 2024 4

I had this problem just now (also only lottie)
Actually "fixed" it by switching from my home wifi to mobile hotspot connection.

🤷

from lottie-react-native.

TheRogue76 avatar TheRogue76 commented on June 14, 2024

Hi @FaridMicrocis
From the logs you have given, this seems like a network error:

Cloning into '/var/folders/nl/31c7y4xx28gbp00lhl8x7s5r0000gn/T/d20240211-18863-w6icl4'...
error: RPC failed; curl 18 HTTP/2 stream 5 was reset
error: 6428 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet

Looking at the published Lottie-ios package, everything seems fine there. Please try with a different network config, and if it is still failing, please provide a reproducible

from lottie-react-native.

FaridMicrocis avatar FaridMicrocis commented on June 14, 2024

@TheRogue76 thanks for your quick response. As I mentioned in the Note, this happens only for lottie-react-native. I have tested different libraries and the installation completes without any issue.

from lottie-react-native.

TheRogue76 avatar TheRogue76 commented on June 14, 2024

@TheRogue76 thanks for your quick response. As I mentioned in the Note, this happens only for lottie-react-native. I have tested different libraries and the installation completes without any issue.

Very well. Please provide a reproducible repository so I can do further investigation.

from lottie-react-native.

NoamKu95 avatar NoamKu95 commented on June 14, 2024

I get the following error when trying to pod install:

[Lottie React Native] Using install_modules_dependencies
Auto-linking React Native modules for target fitnessTracker: BVLinearGradient, RNCAsyncStorage, RNCMaskedView, RNGestureHandler, RNKeychain, RNReanimated, RNSVG, RNScreens, lottie-react-native, react-native-netinfo, and react-native-safe-area-context
Framework build type is static library
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
[Codegen] generating an empty RCTThirdPartyFabricComponentsProvider
Analyzing dependencies
[Codegen] Found FBReactNativeSpec
[Codegen] Found rncore
[Lottie React Native] Using install_modules_dependencies
Downloading dependencies
Installing lottie-ios (4.4.0)
Installing lottie-react-native (6.6.0)
[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod lottie-react-native depends upon glog, 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.

from lottie-react-native.

TheRogue76 avatar TheRogue76 commented on June 14, 2024

Hi @NoamKu95,
Please fill out the issue template or provide a reproducible here so I can take a look. Without those, there is very little I can do.

from lottie-react-native.

batilio avatar batilio commented on June 14, 2024

glog

I'm facing the same issue here!

Steps to Reproduce

  1. yarn add lottie-react-native
  2. cd ios && pod install

Anyone could help us?

from lottie-react-native.

TheRogue76 avatar TheRogue76 commented on June 14, 2024

I am closing the issue. Please provide a proper reproducible when opening issues. It is getting tiresome trying to debug things without any context or info to go on. Software development isn't magic. And this project is community-driven, we are all doing this in whatever free time we can find. I have resisted adding a bot for moderating issue openings, but at the rate things have gone for the past couple of weeks I feel like that is the only way we will be able to get anything worthwhile done.

from lottie-react-native.

batilio avatar batilio commented on June 14, 2024

I get the following error when trying to pod install:

[Lottie React Native] Using install_modules_dependencies Auto-linking React Native modules for target fitnessTracker: BVLinearGradient, RNCAsyncStorage, RNCMaskedView, RNGestureHandler, RNKeychain, RNReanimated, RNSVG, RNScreens, lottie-react-native, react-native-netinfo, and react-native-safe-area-context Framework build type is static library [Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json [Codegen] generating an empty RCTThirdPartyFabricComponentsProvider Analyzing dependencies [Codegen] Found FBReactNativeSpec [Codegen] Found rncore [Lottie React Native] Using install_modules_dependencies Downloading dependencies Installing lottie-ios (4.4.0) Installing lottie-react-native (6.6.0) [!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod lottie-react-native depends upon glog, 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.

I figure out the solution.

In my case the problem was the Xcode version, I had installed the 14.2 and after upgrade it to 15.2 the pod install command worked beautiful!

Good luck for your case!

from lottie-react-native.

fgagneten avatar fgagneten commented on June 14, 2024

For those who have that kind of issue, the only way to make it works is to add again lottie-ios: 4.4.1 in your package.json until lottie-react-native releases a new version using lottie-ios >= 4.4.1 (right now lottie-react-native is using lottie-ios: 4.4.0).

Lottie ios has the following issue that they fixed on version 4.4.1: airbnb/lottie-ios#1830

from lottie-react-native.

TheRogue76 avatar TheRogue76 commented on June 14, 2024

airbnb/lottie-ios#1830

This issue is from December 2022, And the release they are talking about is 4.0.1, not 4.4.1. The git LFS stuff has not been relevant for a while, since we don't have any files on either side that are that large. The CI is also checking this, hence me asking for a reproducible or at least some info to be able to debug things. Also if you want to update Lottie iOS manually, please always patch the package's podspec. LRN will look for its declared dependency, and chances of things becoming too messy are high.

from lottie-react-native.

waseemmaya avatar waseemmaya commented on June 14, 2024

did anyone find the solution for it?

from lottie-react-native.

hoangdv198 avatar hoangdv198 commented on June 14, 2024

I had this problem just now (also only lottie) Actually "fixed" it by switching from my home wifi to mobile hotspot connection.

🤷

lmao that actually fixes it

from lottie-react-native.

Josh-Savvy avatar Josh-Savvy commented on June 14, 2024

Hi guys.
So, I was also getting errors running pod install.
This same error:

[!] /usr/bin/git clone https://github.com/airbnb/lottie-ios.git /var/folders/nl/31c7y4xx28gbp00lhl8x7s5r0000gn/T/d20240211-18863-w6icl4 --template= --single-branch --depth 1 --branch 4.4.0

Cloning into '/var/folders/nl/31c7y4xx28gbp00lhl8x7s5r0000gn/T/d20240211-18863-w6icl4'...
error: RPC failed; curl 18 HTTP/2 stream 5 was reset
error: 6428 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Here's what worked for me:
I had to downgrade to [email protected].

yarn add [email protected]
cd ios && pod install.

It worked and I stopped seeing the errors.

Device - Mac Monterey 12
My XCode version: 13.4.

from lottie-react-native.

asad-mehmood-vendian avatar asad-mehmood-vendian commented on June 14, 2024

try this command before running pod install or pod update

git config --global url."[email protected]:airbnb/lottie-ios.git".insteadOf https://github.com/airbnb/lottie-ios.git

AND

git config --global http.postBuffer 1048576000 # Set buffer to 1GB

from lottie-react-native.

abhilashbhosle avatar abhilashbhosle commented on June 14, 2024

downgrading the version to npm i [email protected] worked for me.

from lottie-react-native.

tnurdin avatar tnurdin commented on June 14, 2024

In package.json

Removing ^ sign helped me.

"lottie-react-native": "^6.7.2",  ==>> "lottie-react-native": "6.7.2",

from lottie-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.