【发布时间】:2020-05-15 20:33:00
【问题描述】:
我正在 Jenkins 从站上从 Jenkins 触发 多个并行的 iOS 构建。 当构建触发以下命令时,我得到一个错误。
命令
carthage bootstrap --no-use-binaries --platform ios --use-ssh --cache-builds
输出
2020-01-29 21:34:58.471 carthage[85379:2625480] INFO: fetch-response is unable to open the file /Users/user/Library/Caches/carthage/fsCachedData/7A4CE621-0AC6-4FAF-B0CE-33FDD32A0113. Errno: 2
*** Checking out Alamofire at "4.8.2"
*** Checking out ios-client at "3.0.0"
*** Checking out stripe-ios at "v18.3.0"
*** Checking out swift-protobuf at "1.5.0"
A shell task (/usr/bin/env git checkout --quiet --force v18.3.0 (launched in /Users/user/Library/Caches/org.carthage.CarthageKit/dependencies/stripe-ios)) failed with exit code 128:
fatal: Unable to create '/Users/user/Library/Caches/org.carthage.CarthageKit/dependencies/stripe-ios/./index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
make: *** [carthage-install] Error 1
如何解决此问题?我猜这是因为多个进程试图访问共享的 Carthage 缓存。
【问题讨论】:
标签: ios xcode git jenkins carthage