“${PODS_ROOT}/SwiftLint/swiftlint” causes “Command

2020-02-02 17:37发布

Updating from Xcode 10.0 beta 2 to Xcode 10.0 beta 3 I now get this error at build time for an iOS project:

sourcekit: [1:connection-event-handler:10499: 0.0000] Connection interruptsourcekit: [1:updateSemanticEditorDelay:10499: 0.0007] disabling semantic editor for 10 secondssourcekit: [1:pingService:10499: 0.0007] pinging servicesourcekitten: connection to SourceKitService restored!
Connection interrupted
Never call this for file that sourcekitd fails.: file File+Cache.swift, line 127
/Users/Coeur/Library/Developer/Xcode/DerivedData/My-App-eloayqptodupvfhbyegtkncnhcpu/Build/Intermediates.noindex/My-App.build/UAT-iphonesimulator/My-App-Debug.build/Script-379156A71D62F5C100574D04.sh: line 2: 34382 Abort trap: 6 "${PODS_ROOT}/SwiftLint/swiftlint"
Command PhaseScriptExecution failed with a nonzero exit code

Swift 4.1
CocoaPods 1.5.3
SwiftLint 0.26.0

17条回答
在下西门庆
2楼-- · 2020-02-02 18:00

In my case, Apple development certificate got expires.

To verify open Keychain -> My certificates -> check developer certificate is valid or not, If certificate is not valid then follow the below steps.

  • Open your apple developer account and create a new development certificate
  • Download and add it in your keychain.
  • Go to profiles and open your existing development profile and add the newly created certificate.
  • Download the fresh profile and install it.

Hope this helps you too.

查看更多
欢心
3楼-- · 2020-02-02 18:06

If the directory where your project is has blank spaces that problem occurs To solve that problem add double quotes(""). For example:

"$(SRCROOT)/my framework/path"

查看更多
相关推荐>>
4楼-- · 2020-02-02 18:06

I had this issue on my ionic4 app after I have used cocoapods. My issue was that in Targets->Build Phases->Embed Pods Frameworks, I had a wrong path to Pods-MyApp-frameworks.sh script correcting that path solved the issue for me. Its because most of the time $PODS_ROOT variable doesn't set after installing pods

查看更多
走好不送
5楼-- · 2020-02-02 18:08

It may cause the iOS 13 version. My error is to look at below

Assignment/Pods-Assignment-frameworks.sh: eval: line 131: unexpected EOF while looking for matching `''
Command PhaseScriptExecution failed with a nonzero exit code

Pods -> Targets Support Files -> Pods-AppName -> Pods-AppName-frameworks.sh. Just commented particular line 131

 # eval "$code_sign_cmd"

then clean and run

查看更多
乱世女痞
6楼-- · 2020-02-02 18:14

Some Framework or SDK require Code Signing.

I done code signing and resolved the problem for me.enter image description here

查看更多
可以哭但决不认输i
7楼-- · 2020-02-02 18:16

If you're getting

dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib

and a red

Command PhaseScriptExecution failed with a nonzero exit code

You should install the specific version of libreadline that you need

brew install readline
brew list --versions readline
brew switch readline 0.0.0
查看更多
登录 后发表回答