Skip to content

Carthage build fails for version 5.0.0 #57

Description

@marioradonic

I've been unsuccessfully trying to add this project as a Carthage dependency.
In the console I get:

*** Building scheme "DynamicColor" in DynamicColorExample.xcodeproj
Build Failed
	Task failed with exit code 65:
   ...

And the file clearly prints out the error:

/Users/mario/Projects/tests/DCTest/Carthage/Checkouts/DynamicColor/Sources/SwiftUIColor.swift:30:18: error: use of undeclared type 'Color'
public extension Color {
                 ^~~~~

** ARCHIVE FAILED **


The following build commands failed:
	CompileSwift normal arm64
	CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler
	CompileSwift normal armv7
(3 failures)

To Reproduce
Steps to reproduce the behavior:

  1. Add github "yannickl/DynamicColor" >= 5.0.01 in Cartfile
  2. Run carthage bootstrap/update
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Smartphone (please complete the following information):

  • Carthage version: 0.34.0
  • MacOS: tried on Mojave and Catalina

Additional context
I did try to debug the error, but I failed. The line in question is using the struct from SwiftUI, and it's enclosed with @available attribute, but still it somehow fails 🤷‍♂

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions