Lottie-ios: Fail to build app in Xcode 12

Created on 23 Jun 2020  路  4Comments  路  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)
  • [ ] Crashing Bug
  • [ ] Feature Request
  • [X] Regression (Something that once worked, but doesn't work anymore)

Which Version of Lottie are you using?

Lottie 3.1.8

What Platform are you on?

  • [ ] MacOS
  • [X] iOS

What Language are you in?

  • [X] Swift
  • [ ] Objective-C

Expected Behavior

Project building successfully

Actual Behavior

image

Undefined symbols for architecture armv7:
  "type metadata for Swift._StringObject.Variant", referenced from:
      outlined init with take of Swift._StringObject.Variant in AnimationKeypathExtension.o
ld: symbol(s) not found for architecture armv7

Xcode Version 12.0 beta (12A6159)

Most helpful comment

All 4 comments

In beta 1, we found that substrings seem to have issues compiling. We could get it building by updating

func equalsKeypath(_ keyname: String) -> Bool - if you wrap the prefix and suffix methods with String(), we were then able to build

I fixed it by going to the Build Settings * for *Lottie-ios Deployment and changed the iOS Deployment Target to iOS 13

This is fixed in Xcode 12 beta 4 and the PR can be reverted

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JALsnipe picture JALsnipe  路  4Comments

MaximKeegan picture MaximKeegan  路  3Comments

CentrumGuy picture CentrumGuy  路  4Comments

Mushrankhan picture Mushrankhan  路  4Comments

loganblevins picture loganblevins  路  3Comments