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
SwiftLint 0.52.4: "The package product SwiftOperators requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0" #5228
Comments
Duplicate of #5208 but I like your title so I've updated mine to look like yours so others can find it easier :-) |
Solved with the release of 0.53.0. I close my own issue....... |
Reopening because on a different project I get exactly the same error, even with 0.53.0 |
v0.53.0 hasn't fixed it over here. Only updated the error to say it requires support for iOS 12 instead of 11. So improved I guess, but definitely NOT fixed. |
Please read the error messages that Xcode is providing carefully. Your projects are configured in such a way that Xcode is attempting to build SwiftLint for iOS, which will not compile. SwiftLint supports building and running on macOS and Linux only. This appears to be a common mistake. Please try this suggestion to see if it helps: #3073 (comment) |
Closing as duplicate of #5208. |
I confirm that the comment solves my issue. But you can see that many non-expert devs like me face this issue. Anyway, thank you for finally solving this issue! |
New Issue Checklist
Describe the bug
When updating SwiftLint from 0.52.2 to 0.52.4, I get multiple compiler errors, like in the subject
Environment
SwiftLint version: 0.52.4
Installation method used: Swift Package
Are you using nested configurations?
No
Which Xcode version are you using (check
xcodebuild -version
)?15.0
Do you have a sample that shows the issue? Run
echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.Yes, I have an open-source sample in GitHub
ISSUE:
I have also removed the package (the solution compiles successfully) and re-added it, but still I get the errors.
The text was updated successfully, but these errors were encountered: