Troubleshooting Lottie Integration Errors in GitHub Actions CI/CD Pipeline #2332
-
Hello Everyone, I am encountering difficulties with integrating Lottie into our CI/CD pipeline on GitHub Actions. I am using the lottie-spm extension. When running our workflow, I encounter errors indicating that it cannot find the 'LottieAnimation' and 'LottieAnimationView' types within the scope. These errors only occur on machines hosted by GitHub Actions, while execution on our local machines proceeds without any issues. However, when attempting to compile the application using SDK 'iphoneos17.2' with Fastlane, I encounter a similar error: Then, upon changing the SDK to 'iphoneos17.0', I received this error:
My GitHub Actions workflow is currently configured to run on macOS 13.
Could you help us resolve these errors related to Lottie and understand how to properly specify the SDK in Fastlane to solve the compatibility issue? Thank you very much for your help. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
I haven't seen this issue before and don't know what could cause it. I could take a look if you share a sample project that reproduces this error. Have you tried using |
Beta Was this translation helpful? Give feedback.
-
The issue lies within our CI/CD pipeline setup rather than the Lottie integration itself. When using lottie-spm, the build job fails due to the inability to locate 'LottieAnimation' and 'LottieAnimationView' types. However, switching to lottie-ios resolves the issue. Unfortunately, I couldn't reproduce this error in other projects locally, indicating it's likely specific to our CI/CD environment. It's crucial for us to use lottie-spm due to an external SDK dependency. |
Beta Was this translation helpful? Give feedback.
-
Have you tried manually downloading the xcframework and dragging it into the project instead? You can download it from https://github.com/airbnb/lottie-ios/releases/download/4.4.1/Lottie-Xcode-15.2.xcframework.zip |
Beta Was this translation helpful? Give feedback.
-
Hi todos, So, now, all is fine and thank you for your helps. |
Beta Was this translation helpful? Give feedback.
Hi todos,
We solved our issue.
The problem came from our use of the fastlane build_app. We didn't precise that the system must clean the compile code before execution, so it used the old version of the lottie library with our code (instead of using the
lottie-spm
).So, now, all is fine and thank you for your helps.