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

Cannot create RxSwift project using Package.swift: error: cyclic dependency declaration found #2100

Closed
nlykkei opened this issue Nov 4, 2019 · 2 comments

Comments

@nlykkei
Copy link

nlykkei commented Nov 4, 2019

I get the following error, when trying to setup RxSwift using the Package.swift installation file:

nlykkei-mbp:rxswift nlykkei$ swift build
error: cyclic dependency declaration found: RxTestProject -> RxTestProject

How can I fix this? Everything works using CocoaPods.

nlykkei-mbp:rxswift nlykkei$ cat Package.swift 
// swift-tools-version:5.0

import PackageDescription

let package = Package(
  name: "RxTestProject",
  dependencies: [
    .package(url: "https://github.com/ReactiveX/RxSwift.git", from: "5.0.0")
  ],
  targets: [
    .target(name: "RxTestProject", dependencies: ["RxSwift", "RxCocoa"])
  ]
)
@pomozoff
Copy link

pomozoff commented Nov 5, 2019

Same here. Here is the project with this bug.
Screenshot 2019-11-05 at 20 32 15

@freak4pc
Copy link
Member

SPM is plagued with bugs that we simply cannot solve unfortunately. Please see the comment here and rest of the discussions: #2127 (comment)

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

No branches or pull requests

3 participants