App crash EXC_BAD_ACCESS if Lottie is part of dependent package and is used in parent project as well #1866
Replies: 5 comments 3 replies
-
Can you share a sample project demonstrating this issue? |
Beta Was this translation helpful? Give feedback.
-
I've created a sample project which also have the same issue. The package used in this project is at https://github.com/ikaransingla/LottiePackage The code used to build the framework is |
Beta Was this translation helpful? Give feedback.
-
I think having multiple copies of the same library loaded / compiled separately is not very well-supported. I know storyboards work by expecting there to be a unique |
Beta Was this translation helpful? Give feedback.
-
@ikaransingla |
Beta Was this translation helpful? Give feedback.
-
@ikaransingla were you able to solve this? |
Beta Was this translation helpful? Give feedback.
-
Lottie was working fine in my project after updating AnimationView to LottieAnimationView even in XIBs too.
It's been crashing since the time I have integrated an SPM package which also has Lottie as the dependency.
Both the project and the package has the same version of Lottie (4.0.1). Tried downgrading the version to 3.5.0 as well but it's still crashing.
Which Version of Lottie are you using?
3.5.0, 4.1.0
Expected Behavior
The animation should work fine.
Actual Behavior
Facing crash at the time of animation assignment.

The animation is working fine inside the added package though.
Animation JSON
Facing this crash for all json files. Attaching a sample one for reference
https://assets10.lottiefiles.com/datafiles/KddzycchL2y14pT/data.json
Beta Was this translation helpful? Give feedback.
All reactions