我在配置 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 构建工作正常。
我将随时解答所有其他问题,并感谢我能获得的所有帮助。
问题解决了。 由于某种原因,插件“CocoaPods Jenkins Integration”无法正常工作,因此 Podfile.lock 和 Manifest.lock 不同,并且由于该项目无法构建。