lottie-ios: Lottie not building on M1 MAX - Could not read serialized diagnostics file

Check these before submitting:

  • The issue doesn’t involve an Unsupported Feature
  • This issue isn’t related to another open issue

This issue is a:

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

Which Version of Lottie are you using?

Lottie 3.0

What Platform are you on?

  • MacOS
  • iOS

What Language are you in?

  • Swift
  • Objective-C

Expected Behavior

The application to build.

Actual Behavior

The application does not build and throw the following error:

/Library/Developer/Xcode/DerivedData/test-dcjkneocylqbqebqtiucqofhlazk/Build/Intermediates.noindex/Lottie.build/Debug/Lottie.build/Objects-normal/arm64/AnimationCacheProvider.dia:1:1: warning: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'Lottie' from project 'Lottie')
Command CompileSwift failed with a nonzero exit code
Screenshot 2021-12-13 at 10 40 42

Code Example

No code needed.

To replicate, create new macOS app, add Lottie package, try to build, build fails.

I am using a M1 MAX MacBook Pro, running Xcode 13.1 and macOS Monterey. I tried with a new project, clean build, no derived data or cache

Animation JSON

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (14 by maintainers)

Most upvoted comments

I think this happens because we have multiple “folder references” for a single folder (“Samples”) in our Xcode workspace. I don’t know what this error is for, considering the project still works correctly otherwise. Removing one of the folder references makes the error go away, but we actually use those references so just decided to leave the error as-is in our workspace.

actually, I downloaded master, and used it as a local package, it does build. Fingers crossed you guys manage to release soon.

Thanks