Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing ti.animation crashes iOS on older versions #59

Closed
cmtanko opened this issue Jun 27, 2022 · 10 comments · Fixed by #60
Closed

Implementing ti.animation crashes iOS on older versions #59

cmtanko opened this issue Jun 27, 2022 · 10 comments · Fixed by #60
Assignees

Comments

@cmtanko
Copy link

cmtanko commented Jun 27, 2022

I have been trying the example project, and here's my outcome

Android:

  • Works great

iOS:

  • iPhone Xs (15.4.1) Works great
  • iPhone 6s (12.5.5) Crashes the app

So, the app is crashing on the older phone with the older version. There are no logs on the crash.

@hansemannn
Copy link
Sponsor Collaborator

Can you attach a sample app.js and lottie file to reproduce the issue?

@m1ga
Copy link
Owner

m1ga commented Jun 27, 2022

@hansemannn
Copy link
Sponsor Collaborator

Oh yeah, sorry! The project files look fine and we use v3.0.0 on iOS 12 without issues. I will check if the latest update may caused it!

@hansemannn hansemannn self-assigned this Jun 27, 2022
@hansemannn hansemannn added this to the ios-5.0.1 milestone Jun 27, 2022
@hansemannn
Copy link
Sponsor Collaborator

It seems like the native Lottie SDK is built for iOS 13+:

[DEBUG] dyld: Symbol not found: _objc_opt_class
[DEBUG]   Referenced from: /Users/user/Library/Developer/CoreSimulator/Devices/65D2EA30-3419-42B8-8B17-8E8B82BF472D/data/Containers/Bundle/Application/592C644D-3C95-41E7-A00E-E1333FB93E26/test_lottie.app/Frameworks/Lottie.framework/Lottie (which was built for iOS 13.0)

@hansemannn
Copy link
Sponsor Collaborator

Thats odd. Lottie itself only requires iOS 11, so it has to be a recent change. @mbender74 do you know if something changed?

@mbender74
Copy link
Contributor

mmmh, looks like I compiled the XCFramework against iOS13..... That would need to be changed to iOS12 then...

@mbender74
Copy link
Contributor

@hansemannn I will push a PR in the nexxt hours

@mbender74
Copy link
Contributor

mbender74 commented Jun 27, 2022

@hansemannn @m1ga I fixed that, added XCFramework for iOS12
#60

@hansemannn
Copy link
Sponsor Collaborator

@cmtanko
Copy link
Author

cmtanko commented Jun 28, 2022

OMG !!!! Quickest fix ever.... Thank you so much @mbender74 and everyone else. It's so gooooooddd.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants