swift-issue-reporting: multiple similar targets error has occured

Problems

  • After 1.2.0, when I resolve package dependencies, multiple similar targets 'IssueReporting', 'IssueReportingTestSupport', 'XCTestDynamicOverlay' appear in package 'swift-issue-reporting' and 'xctest-dynamic-overlay' error has occured.
    • I use swift-dependencies and swift-perceptions, which use this library.
  • This is because xctest-dynamic-overlay is renamed swift-issue-reporting, however it appears that Package.swift is recognized as a separate package

My Package.resolved is below

{
  "pins": [
    {
      "identity": "swift-issue-reporting",
      "kind": "remoteSourceControl",
      "location": "https://github.com/pointfreeco/swift-issue-reporting",
      "state": {
        "revision": "926f43898706eaa127db79ac42138e1ad7e85a3f",
        "version": "1.2.0"
      }
    },
    {
      "identity": "xctest-dynamic-overlay",
      "kind": "remoteSourceControl",
      "location": "https://github.com/pointfreeco/xctest-dynamic-overlay",
      "state": {
        "revision": "926f43898706eaa127db79ac42138e1ad7e85a3f",
        "version": "1.2.0"
      }
    }
  ]
}

About this issue

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

Commits related to this issue

Most upvoted comments

We released 1.2.1 yesterday that should fix all of these issues. Just update to that version of this library and there’s no need to pin any other libraries.

Hi @dsmailes, thanks for your patience with this. I just tested locally and got this to work:

.package(url: "https://github.com/pointfreeco/swift-case-paths", exact: "1.5.2"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump", exact: "1.3.0"),
.package(url: "https://github.com/pointfreeco/swiftui-navigation", exact: "1.5.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", exact: "1.1.2"),

We unfortunately have to pin all of the dependencies using xctest-dynamic-overlay. We are still in the process of investigating other mitigation strategies, but hopefully this will serve as a stopgap.

@mbrandonw that’s looking good, thanks so much for taking the time.

Just for context, because I hadn’t made it clear so far (apologies) the reason I need to pin to 1.5.0 is because we have some strict concurrency warnings to deal with if we update to 1.5.2.

this is a breaking change, it should be 2.0.0, it just broke our builds

Hi @pewkachu, very sorry for the troubles. We did not realize this would be such a breaking change. There’s not much we can do now about it now, but it should be a simple matter of updating your dependencies to the newest patch version.

I’m seeing this error on any version of swiftui-navigation other than 1.5.2.

Hi @dsmailes, the error doesn’t have to do with swiftui-navigation, it has to do with its dependencies, in particular this one. You can either upgrade all of your dependencies to the newest version to fix, or you can add an explicit dependency on xctest-dynamic-overlay pinned to the previous version:

.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", exact: "1.1.2"),

this is a breaking change, it should be 2.0.0, it just broke our builds

@shimastripe Both Perception and Dependencies have had releases that point at Issue Reporting, so you should just need to update your package dependencies to avoid this error. Because I believe this issue is the same as #91 I’m going to close, but please follow up there if you still have issues.