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

[SPM] The problem with incorrect interaction with Swift Package Manager #148

Open
stolyarenkokswing opened this issue Nov 19, 2020 · 3 comments

Comments

@stolyarenkokswing
Copy link

stolyarenkokswing commented Nov 19, 2020

When we have Synx and Swift PM in our Project, every time the utility runs, it affects the SPM dependencies. Synx renaming and moving the SPM dependencies.

  1. This is the first problem, because every time the SPM returns all modifications back, as they were not applied correctly. And Synx next renames it, and so on in a circle, every time.
  2. The second problem is that there is no way to exclude the interaction of synx with SPM, thereby making this utility inapplicable on projects that use SPM.

Open Project, SPM updated dependencies, and rename it as correct.
BeforeUsingSynx

Run Synx, Synx renamed SPM dependencies.
AfterUsingSynx

Xcode 12.1
MacOS Catalina 10.15.7

@JanNash
Copy link

JanNash commented Mar 19, 2021

To work around this problem, you can install a newer version of xcodeproj. I'm using this in a project:
gem 'xcodeproj', github: 'CocoaPods/Xcodeproj', ref: 'c8ab614079b338e38e987671e1e74319168bf61f'
Works like a charm for me :)

@JanNash
Copy link

JanNash commented Mar 19, 2021

Also see this PR: CocoaPods/Xcodeproj#799

@JanNash
Copy link

JanNash commented Mar 19, 2021

Unfortunately, there hasn't been a new release of Xcodeproj yet, so you'll have to install this by ref.

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

2 participants