Closed JustasL closed 7 months ago
Hello, I am not sure why but lottie-spm fails to compile when used in Package.swift file
Here's my Package.swift file:
// swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "DemoSPM", products: [ .library( name: "DemoSPM", targets: ["DemoSPM"]), ], dependencies: [ .package(url: "https://github.com/airbnb/lottie-spm.git", from: "4.4.0"), ], targets: [ .target( name: "DemoSPM", dependencies: ["Lottie"] ), ] )
And I get error: product 'Lottie' required by package 'demospm' target 'DemoSPM' not found.
product 'Lottie' required by package 'demospm' target 'DemoSPM' not found.
However if instead of dependency I use binary everything works fine:
binary
.binaryTarget( name: "Lottie", url: "https://github.com/airbnb/lottie-ios/releases/download/4.4.0/Lottie-Xcode-15.2.xcframework.zip", checksum: "2554036cb98d10d9d3e4c61fe17ba629f528e308323ff2d22b187f3a9557671e" )
Lottie 4.4.0
Never mind, the issue was cause due to swift-tools-version: 5.9, as Lottie only support 5.7
swift-tools-version: 5.9
5.7
Hello, I am not sure why but lottie-spm fails to compile when used in Package.swift file
Here's my Package.swift file:
And I get error:
product 'Lottie' required by package 'demospm' target 'DemoSPM' not found.
However if instead of dependency I use
binary
everything works fine:Which Version of Lottie are you using?
Lottie 4.4.0