Lottie-ios: AnimationView causes crash when initialized in Interface Builder

Created on 26 Mar 2019  Â·  10Comments  Â·  Source: airbnb/lottie-ios

Check these before submitting:

  • [x] The issue doesn't involve an Unsupported Feature
  • [x] This issue isn't related to another open issue

This issue is a:

  • [] Non-Crashing Bug (Visual or otherwise)
  • [x] Crashing Bug
  • [] Feature Request
  • [x] Regression (Something that once worked, but doesn't work anymore)

Which Version of Lottie are you using?

Lottie 3.0.3

What Platform are you on?

  • [] MacOS
  • [x] iOS 12.1

What Language are you in?

  • [x] Swift 4.2
  • [] Objective-C

Expected Behavior

An AnimationView can be initialized in interface builder like LOTAnimationView in lottie-ios version 2.5.3.

Actual Behavior

When an AnimationView is initialized through a storyboard, accessing properties of the animation view causes the app to crash with an EXC_BAD_ACCESS error.

Most helpful comment

Screen Shot 2019-03-28 at 10 13 02 AM
@DennisHirschgaenger @jcooperation0137 @dylanmaryk
can be resolved by choosing the Module

All 10 comments

I get the same crash after updating our pods onremoveCurrentAnimation()

Same. Swift 5.0.

Same here. Also Swift 5.0.

Same here, swift 4.2, lottie version: 3.0.3

If anyone has a repo please send it to me. I haven't been able to recreate the crash, and cant find a fix until I do.

On Mar 27, 2019, at 12:27, jcooperation0137 notifications@github.com wrote:

Same here, swift 4.2, lottie version: 3.0.3

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Same. Swift 4.2.

Screen Shot 2019-03-28 at 10 13 02 AM
@DennisHirschgaenger @jcooperation0137 @dylanmaryk
can be resolved by choosing the Module

That works. Thank you

thank u

The solution provided by @hoangtuanfithou doesn't work in my case.
Swift 4.2
lottie-ios (3.1.2)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ricardohochman picture ricardohochman  Â·  4Comments

rajeshbeats picture rajeshbeats  Â·  3Comments

awschuerholz picture awschuerholz  Â·  3Comments

muraterd picture muraterd  Â·  5Comments

WZBbiao picture WZBbiao  Â·  5Comments