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

Xcode 11 install via SPM won't compile because of SourceKitten #2867

Open
RamblinWreck77 opened this issue Sep 13, 2019 · 6 comments
Open

Xcode 11 install via SPM won't compile because of SourceKitten #2867

RamblinWreck77 opened this issue Sep 13, 2019 · 6 comments

Comments

@RamblinWreck77
Copy link

@RamblinWreck77 RamblinWreck77 commented Sep 13, 2019

Installing SwiftLint via SPM installs dependencies that prevent the project from compiling.

SourceKitten doesn't seem to consider this their problem:

jpsim/SourceKitten#612

Any proposed solution?

Also, since I'm trying to move from Cocoapods > SPM, I'm running into another issue:

In cocoapods you could do:

pod 'SwiftLint', :configurations => ['Debug']

And SwiftLint wouldn't get included in your release builds. Is this possible with SPM?

@crsantos

This comment has been minimized.

Copy link

@crsantos crsantos commented Oct 7, 2019

But does bumping to jpsim/SourceKitten#612 's 0.26 fixes this?

@MaxHaertwig

This comment has been minimized.

Copy link
Contributor

@MaxHaertwig MaxHaertwig commented Oct 8, 2019

No, still two issues:
Screen Shot 2019-10-08 at 14 19 15

@marcelofabri

This comment has been minimized.

Copy link
Collaborator

@marcelofabri marcelofabri commented Oct 8, 2019

No, still two issues:
Screen Shot 2019-10-08 at 14 19 15

You can't use SwiftLint via SPM on an iOS project like that - see the comment on jpsim/SourceKitten#612 (comment)

@crsantos

This comment has been minimized.

Copy link

@crsantos crsantos commented Oct 10, 2019

Question: (if someone knows)

Swiftlint used via SPM wasn't even compiling for macOS, but right now, in master it compiles perfectly when you add swiftlint as an SPM dependency

But we don't have a tag 😬

When should be the next release?

@fruitcoder

This comment has been minimized.

Copy link

@fruitcoder fruitcoder commented Feb 1, 2020

@crsantos after 2h of searching I finally found this issue. It seems that the newest release (0.38.2) still doesn‘t work with SPM. After using master Swiftlint finally builds 🎉 thanks for pointing me into the right direction

@crsantos

This comment has been minimized.

Copy link

@crsantos crsantos commented Feb 3, 2020

@fruitcoder Previous tags were working fine, guess it was fine on 0.35.0+

but if master is working and 0.38.2 isn't, was fixed after that tag was created. Same problem as before.

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.