skip to Main Content

I’m working on a project with my friend and we sometimes share the project zip file without Source Controllers like GitLab. When I get and rebuild the project I face the error: ${PODS_ROOT}/SwiftLint/swiftlint causes Command PhaseScriptExecution failed with a nonzero exit code

I tried to remove lint by uninstalling from pods but now I get this error:

/project_address/Pods/Target Support Files/SwiftLint/SwiftLint.debug.xcconfig: unable to open file (in target "SwiftLint" in project "Pods")

could some body help me find the solution? Thanks in advance

2

Answers


  1. Chosen as BEST ANSWER

    I finally figured it out. After doing all the steps above I removed "${PODS_ROOT}/SwiftLint/swiftlint" from "project settings/target/build phase/run script" and works like a charm.


    1. Remove the pod:
    pod 'SwiftLint'
    
    1. Remove the run script that looks like this:
    "${PODS_ROOT}/SwiftLint/swiftlint"
    
    1. Remove any custom configurations files that you may added with .swiftlint.yml extension from the directory that you are running SwiftLint from
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search