swift-custom-dump: Version 0.4.0 does not compile

CoreImage extensions with availability constraints result in the following error

Protocol 'CustomDumpStringConvertible' requires 'customDumpDescription' to be available in iOS 9.0.0 and newer

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

@chernousov-m You can always add a direct dependency on a transitive to lock its version. This is exactly what I did in our project to fix the issue.

So instead of having TCA only in your Package.swift (which will lead to indirectly importing the latest CustomDump):

        .package(url: "https://github.com/pointfreeco/swift-composable-architecture", .exact("0.26.0")),

Add both:

        .package(url: "https://github.com/pointfreeco/swift-composable-architecture", .exact("0.26.0")),
-->     .package(url: "https://github.com/pointfreeco/swift-custom-dump.git", .exact("0.3.0")),

You don’t even have to add the product to your target. Just the dependency inside dependencies will force SPM to resolve 0.3.0 always regardless to satisfy both TCA and your package.