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

Unable to use v4.0.1 using carthage #1883

Closed
aakarsh-sasi opened this issue Dec 28, 2022 · 7 comments
Closed

Unable to use v4.0.1 using carthage #1883

aakarsh-sasi opened this issue Dec 28, 2022 · 7 comments

Comments

@aakarsh-sasi
Copy link

Which Version of Lottie are you using?

Trying to use Lottie 4.0.1

Expected Behavior

Should build xcframework

Actual Behavior

Fails with error
A shell task (/usr/bin/xcrun xcodebuild -project /Users/aakarsh/Desktop/xyz/Lottie.xcodeproj CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES -list) failed with exit code 74:
xcodebuild: error: Could not resolve package dependencies:
Package.resolved file is corrupted or malformed; fix or delete the file to continue: unsupported schema version 2

Animation JSON

@calda
Copy link
Member

calda commented Dec 28, 2022

What command are you running that produces this error?

@aakarsh-sasi
Copy link
Author

aakarsh-sasi commented Dec 28, 2022

./carthage.sh bootstrap lottie-ios --platform iOS --use-xcframeworks --no-use-binaries

@calda I'm on Xcode 13.1 (Swift 5.5) and the binary xcframework attached on GitHub is created using Swift 5.7. Hence had to add --no-use-binaries so that it is built on the system itself. It used to work on the older versions, but throws the above error now

@aakarsh-sasi
Copy link
Author

Working fine for 3.4.3

@aakarsh-sasi
Copy link
Author

@calda any solution to this? We can't update to the latest version

@calda
Copy link
Member

calda commented Jan 3, 2023

Can you share a sample project that reproduces this issue? When I run carthage bootstrap lottie-ios --platform iOS --use-xcframeworks --no-use-binaries I don't get any errors.

@github-actions
Copy link

This issue is stale because it is marked "can't reproduce" and has had no activity in the past week. Please comment with additional information, or this issue will be closed due to inactivity in one week.

@calda
Copy link
Member

calda commented Jan 18, 2023

I think I understand the issue now. This PR should resolve it: #1922

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

No branches or pull requests

2 participants