在 Jenkins 从机上构建 iOS 应用程序返回错误:沙箱与 Podfile.lock 不同步

问题描述 投票:0回答:1

我在配置 Jenkins Slave 来构建 iOS 应用程序时遇到了问题。我已经按照this教程中所述设置了所有内容,但每次我的构建失败时都会显示消息:

error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
 
** BUILD FAILED **
 
The following build commands failed:
 
`PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock
/PATH_TO_PROJECT/Build/Intermediates/xxxx.build/Release-iphoneos/xxxx.build/Script-F0C04920AA373F4352DB3101.sh`
 
(1 failure) Build step 'Xcode' marked build as failure Finished:
FAILURE

cocoapods
的版本是
1.1.1

xCode
版本
7.3.1

我使用 mac mini 作为从设备(Sierra OS X)

我已经通过终端运行 pod install,并且从 xCode 构建工作正常。

我将随时解答所有其他问题,并感谢我能获得的所有帮助。

ios xcode jenkins cocoapods jenkins-agent
1个回答
0
投票

问题解决了。 由于某种原因,插件“CocoaPods Jenkins Integration”无法正常工作,因此 Podfile.lock 和 Manifest.lock 不同,并且由于该项目无法构建。

© www.soinside.com 2019 - 2024. All rights reserved.