SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Xcode 14, errors or warnings disappeared?

Open HolmesZhao opened this issue 3 years ago • 7 comments

New Issue Checklist

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 version to 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. image

HolmesZhao avatar Sep 09 '22 03:09 HolmesZhao

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.

dknewman avatar Sep 21 '22 13:09 dknewman

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.

henryglendening-hh avatar Oct 04 '22 20:10 henryglendening-hh

It seems like bug Xcode 14: https://developer.apple.com/forums/thread/715103

ndtoan75 avatar Oct 24 '22 08:10 ndtoan75

anyone has solutions?

Jason8Zhang avatar Feb 01 '23 00:02 Jason8Zhang

anyone has solutions?

Update to the latest version of swiftlint, and xcode 14.2, thats what fixed it for me.

dknewman avatar Feb 01 '23 00:02 dknewman

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?

SimplyDanny avatar Feb 02 '23 18:02 SimplyDanny

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.

HolmesZhao avatar Feb 03 '23 07:02 HolmesZhao

I'm currently getting this issue with XCode 14.2. Has a fix been found?

merlinpaypal avatar Mar 08 '23 15:03 merlinpaypal

I have the same problem with XCode 14.2

ludimila avatar Mar 17 '23 18:03 ludimila

Why was this closed?

merlinstardust avatar Mar 29 '23 04:03 merlinstardust

Why was this closed?

Ditto this. Anyone figured out the solution for this?

karimlanguedoc avatar Apr 14 '23 13:04 karimlanguedoc

I am also having this issue with Xcode 14.2.

jensenharris avatar May 23 '23 17:05 jensenharris

Anyone found solution for this ?

bebugger avatar Jun 05 '23 10:06 bebugger

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:

  1. 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"
  2. 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!

saifulafiqzakaria3 avatar Sep 20 '23 07:09 saifulafiqzakaria3