SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Failure PhaseScriptExecution Swiftlint

Open daljeet16 opened this issue 2 years ago • 5 comments

I am using swiftlint version 0.54.0 and updated Xcode to 15.2 version Facing issue while building on Jenkins machine: Here is the error:

The following build commands failed: PhaseScriptExecution Swiftlint /Users/administrator/.jenkins/workspace/derivedData/Build/Intermediates.noindex/ArchiveIntermediates//Script-8571282F2B96E3BA00CF1389.sh (1 failure)

We tried on the downgrade versions as well like 0.53.0, 0.52.4. But issue remain the same

Environment

  • SwiftLint version (run swiftlint version to be sure)? 0.54.0

  • Installation method used ()? CocoaPods

  • Paste your configuration file: The path in the run script "${PODS_ROOT}/SwiftLint/swiftlint"

  • Which Xcode version are you using (check xcodebuild -version)? 15.2

daljeet16 avatar Mar 05 '24 14:03 daljeet16

Please provide your build script.

SimplyDanny avatar Mar 05 '24 20:03 SimplyDanny

Here is Build Script: Script-8571282F2B96E3BA00CF1389.txt

daljeet16 avatar Mar 06 '24 04:03 daljeet16

You need to check what the actual error is. A generic "script failed" is not helpful.

Make sure that PODS_ROOT is set correctly.

SimplyDanny avatar Mar 06 '24 08:03 SimplyDanny

PODS_ROOT is set correctly, I double checked. Same was working fine in Xcode version 14.++ Let me know If can share to anything else to fix this

daljeet16 avatar Mar 07 '24 07:03 daljeet16

One cannot help without a real error reported by the script.

SimplyDanny avatar Mar 07 '24 08:03 SimplyDanny