Xcode 14, errors or warnings disappeared?
New Issue Checklist
- [x] Updated SwiftLint to the latest version
- [x] I searched for existing GitHub issues
Describe the bug
swiflint installed in cocoapods with Xcode 14 build, without errors and warnings in Xcode sometimes.
Complete output when running SwiftLint, including the stack trace and command used
$ ./Pods/SwiftLint/swiftlint version
0.49.1
Environment
- SwiftLint version (run
swiftlint versionto be sure)?- 0.49.1
- Installation method used (Homebrew, CocoaPods, building from source, etc)?
- Cocoapods
- Paste your configuration file:
- none
- Are you using nested configurations?
- none
- Which Xcode version are you using (check
xcodebuild -version)?- Xcode 14 beta 2
- Do you have a sample that shows the issue?
like this image, warning in build, but source code without any warning tips.
Follwing...Having the same issue. The linting will show for a second then disappear. Very annoying.
Same results regardless if its a warning or error.
I'm seeing the same thing. But when the build is made via CLI (or CI tools), the lint warnings/errors are thrown and visible in the logs, so I get unexpected build failures.
It seems like bug Xcode 14: https://developer.apple.com/forums/thread/715103
anyone has solutions?
anyone has solutions?
Update to the latest version of swiftlint, and xcode 14.2, thats what fixed it for me.
Update to the latest version of swiftlint, and xcode 14.2, thats what fixed it for me.
Can @HolmesZhao, @dknewman and @henryglendening-hh confirm that?
Update to the latest version of swiftlint, and xcode 14.2, thats what fixed it for me.
Can @HolmesZhao, @dknewman and @henryglendening-hh confirm that?
I will try it.
I'm currently getting this issue with XCode 14.2. Has a fix been found?
I have the same problem with XCode 14.2
Why was this closed?
Why was this closed?
Ditto this. Anyone figured out the solution for this?
I am also having this issue with Xcode 14.2.
Anyone found solution for this ?
Just in case anyone who still having this problem. I managed to solved mine by following whatever written by readme file there on https://github.com/realm/SwiftLint. I'm using 14.3 now and the warning was not appearing. Since I installed swiftlint using cocoapods, what I did was:
- Select the project in the file navigator, then select the primary app target, and go to Build Phases. Click the + and select "New Run Script Phase". Insert the following as the script: Note: script will depend base on how you install the swiftlint
"${PODS_ROOT}/SwiftLint/swiftlint" - Then you can try to run the build again see if the error comes out or not.
Thats what I did, correct me if I'm wrong. Thanks!