Open PierreMardon opened 1 year ago
I have the same issue and have opened the following pull request (https://github.com/jpsim/SourceKitten/pull/801) to get SourceKitten fixed.
@PierreMardon If you're still fighting this error, I forked SwiftLint to pull in my SourceKitten fix. It seems to work great!
Repo here: https://github.com/chotchki/SwiftLint
It's not relevant for my use case anymore, but thanks for the update 😉
Hello, we have a Swift package that supports Mac Catalyst and we are running into the same issue when adding SwiftLint as a build plugin.
@PierreMardon If you're still fighting this error, I forked SwiftLint to pull in my SourceKitten fix. It seems to work great!
Any idea when that PR will get merged and when SwiftLint will pick up that change?
Thanks!
@zkline101 SourceKitten hasn't had a release since 2023 and hasn't merged commits in the last 2months. I'm not sure when this fix will get merged. For my projects I've just been using my forked version as an easy solution interim fix.
I just rebased my fix onto the latest Swiftlint, hope it helps!
New Issue Checklist
Describe the bug
My small lib PDefaults uses SwiftLint as a SPM plugin.
It won't build using XCode 14.3.1 with
My Mac (Mac Catalyst)
run destination.It's in fact SourceKitten that's failing.
Complete output
caused by this snippet, the compiler considering
canImport(Darwin)
istrue
:Environment
SwiftLint version (run
swiftlint version
to be sure)?0.52.3
Installation method used (Homebrew, CocoaPods, building from source, etc)? SPM plugin
Paste your configuration file: not relevant
Are you using nested configurations? not relevant
Which Xcode version are you using (check
xcodebuild -version
)?14.3.1
Do you have a sample that shows the issue?
Create a dummy package with SwiftLint used as a plugin like this: