与XCode机器人和cocoapods持续集成

joh*_*han 5 continuous-integration cocoapods xcode5 xcode-bots

我遇到机器人在建造时偶尔会失败的问题.预构建操作用于安装pod,这种方法很有效.但是,当集成失败时,由于此错误:

Installing Pods
Analyzing dependencies
Downloading dependencies
[32mInstalling AFNetworking (1.3.3)[0m
...
2014-03-07 10:40:25.667 xcodebuild[76637:100b] [MT] IDEFileReferenceDebug: [Load] <IDEFileReference, 0x7fa3fe5b0840: group:Pods/Pods.xcodeproj> Failed to load container at path: /Library/Server/Xcode/Data/BotRuns/Cache/5bbd629b-a843-42b0-8b52-256db7560be5/source/Pods/Pods.xcodeproj, Error: Error Domain=Xcode3ProjectErrorDomain Code=2 "Project /Library/Server/Xcode/Data/BotRuns/Cache/5bbd629b-a843-42b0-8b52-256db7560be5/source/Pods/Pods.xcodeproj cannot be opened because it is missing its project.pbxproj file." UserInfo=0x7fa3fe7e54b0 {NSLocalizedDescription=Project /Library/Server/Xcode/Data/BotRuns/Cache/5bbd629b-a843-42b0-8b52-256db7560be5/source/Pods/Pods.xcodeproj cannot be opened because it is missing its project.pbxproj file.}
Generating Pods project
Integrating client project
Run Code Online (Sandbox Code Playgroud)

所以我的猜测是xcodebuld在生成之前尝试读取Pods项目.

这听起来像是一个合理的猜测吗?

有谁知道如何解决它?

EDIT Pre-action构建脚本看起来就像这样

cd $SRCROOT

export LC_ALL="en_US.UTF-8"

if [ -d Pods ]
then
echo "Updating Pods"
pod update
else
echo "Installing Pods"
pod install
Run Code Online (Sandbox Code Playgroud)

Rem*_*rrr 0

我让 xCode 服务器与 cocoapods 无缝配合,看看我的文章,它可能对你有帮助。

http://papaanton.com/setting-up-xcode-6-and-apple-server-4-0-for-continues-integration-with-cocoapods/

我每次使用 Pod install 都会进行干净的构建。

也许是这个原因。