在我创建新的存储库后Xcode Server
,我无法通过ssh访问它,但我可以使用https协议执行git clone
命令和git push
命令.
此外,当我尝试创建Xcode Bot时遇到以下错误:
Oct 25 12:43:46 mokii.com xcsbuildd[99898]: XCSCheckoutIntegrationStep.m:160 [XCSCheckoutIntegrationStep logUnderlyingErrorForError:]
[SourceControl, Error] SSL error: received early EOF (-1)
Oct 25 12:43:46 mokii.com xcsbuildd[99898]: XCSCheckoutIntegrationStep.m:119 [XCSCheckoutIntegrationStep enqueueOperations]
[SourceControl, Error] Error checkout/clone Error Domain=com.apple.dt.SourceControlErrorDomain Code=-1 "SSL error: received early EOF (-1)" UserInfo=0x7fcf244d3cd0 {com.apple.dt.sourcecontrol.UnderlyingErrorString=SSL error: received early EOF (-1), NSLocalizedDescription=SSL error: received early EOF (-1)}
Oct 25 12:43:46 mokii.com xcsbuildd[99898]: XCSIntegrationExecutor.m:229 [XCSIntegrationExecutor integrationStep:didFinishWithError:result:]
[BuildService, Error] XCSCheckoutIntegrationStep finished …
Run Code Online (Sandbox Code Playgroud) 我正在为我的iOS应用程序设置CI,我正面临一些问题.
这是我在哪里找到有关触发脚本的信息 https://help.apple.com/xcode/mac/1.0/#apdE6540C63-ADB5-4B07-89B7-6223EC40B59C
每个设置都会显示示例值.计划:选择手动,定期,新提交或触发脚本运行.
谢谢!
我的Xcode bot集成失败,出现以下错误.
断言:运行任务已终止,因为它没有产生太长时间的活动.
从日志的底部:
Sampling completed, processing symbols...
Sample analysis of process 4470 written to file /Library/Developer/XcodeServer/Integrations/Integration-ef7a2c98cd2307fc71923f1123ea23f7/4470.sample
sample[5774]: sample cannot find any existing process you have access to which has a name like 'Interface Builder Cocoa Touch Tool'; try running with `sudo`.
sample[5775]: sample cannot find any existing process you have access to which has a name like 'ibtool'; try running with `sudo`.
sample[5776]: sample cannot find any existing process you have access to which has a name like 'ibtoold'; …
Run Code Online (Sandbox Code Playgroud) 我们的Xcode Build Server失败了,不再执行任何测试了.版本8.3(8e162)
它只是失败了声明:
建立服务问题
错误找不到配置用于测试的设备.
当我选择"修复它"时,可以简单地将其重定向到机器人设置中的"编辑机器人" - >"设备".有时iOS设备列表加载的时间比以前(立即)更长(~15秒).
因此,当设备最终显示(如果它们甚至显示)并被选中时,会出现以下错误提示: 内部错误更新机器人,请尝试再次配置机器人
这里提供的解决方案对我来说没有问题,因为我在机器人登录: xcode机器人编辑失败
有没有人找到
共享方案或某些东西突然出错或者是否配置错误可能会导致问题?
在我再次创建机器人之前,我真的想修复机器人,保留构建历史等.
我需要访问每个bot集成期间动态创建的文件夹.在其中一个运行中它是这样的 -
/ Library/Developer/XcodeServer/Integrations/Caches/a3c682dd0c4d569a3bc84e58eab88a48 /DerivedData/Build/Products/Debug-iphonesimulator/my.app
我想在post触发器中找到这个文件夹,我该怎么办呢?基于wwdc谈话,似乎正在使用一些环境变量,如'XCS_INTEGRATION_RESULT'和XCS_ERROR_COUNT等.我还可以在日志中看到像PROJECT_DIR这样的东西.
但我无法从命令行访问这些变量中的任何一个(是因为我是一个与机器人不同的用户?)另外,我在哪里可以找到这个CI系统创建的变量列表?
我已经得到半随机的......
Test operation failure: Test session exited(-1) without completing.
_finishWithError:Error Domain=IDEUnitTestsOperationsObserverErrorDomain Code=3 "Test session exited(-1) without completing." UserInfo=0x7fcd0a83c2c0 {NSLocalizedDescription=Test session exited(-1) without completing.} didCancel: 1
Finished syncing device diagnostic logs after 0.0s.
Run Code Online (Sandbox Code Playgroud)
我的Xcode CI机器人上的错误.我还没有弄清楚如何解决这个问题.这些尝试没有任何积极的结果
DerivedData
Xcode构建服务器的文件夹 - DerivedData
在其中命名的所有文件夹/Library/Developer/XcodeServer
任何想法如何解决这一问题?
一些环境:
首先,我在Mavericks上运行Mac Mini并安装了Xcode 5.在服务器上,我将我的iOS项目设置为Bots,以便在每次提交时运行我的Github repo的自动构建.我想知道的是,是否有人已经配置了这种设置来处理发送到TestFlight的自动构建.
以前使用Jenkins构建过程工作的脚本粘贴在下面,但是当机器人完成它的构建时会抛出错误并且不会上传.我有这个脚本运行我的应用程序的归档过程的"后期行动".
服务器日志错误:
打印:条目,"CFBundleVersion",不存在
错误:指定的应用程序不存在或不是捆绑目录:'/ Library/Server/Xcode/Data/BotRuns/Cache/s892fj1n2-f4bb-2514-522v-2a23d0f0c725/DerivedData/Build/Products/Debug-iphoneos/myApp.ipa"
脚本:
PLIST_FILE=$(echo -n "${SRCROOT}/${INFOPLIST_FILE}")
BUILD_TYPE=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PLIST_FILE}")
API_TOKEN="<API_TOKEN>"
TEAM_TOKEN="<SECRET>"
APP="${BUILD_ROOT}/Debug-iphoneos/${FULL_PRODUCT_NAME}"
/bin/rm "/bots/${PRODUCT_NAME}.ipa"
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${APP}" -o "/bots/${PRODUCT_NAME}.ipa"
/usr/bin/curl "http://testflightapp.com/api/builds.json" \
-F file=@"/bots/${PRODUCT_NAME}.ipa" \
-F a pi_token="${API_TOKEN}" \
-F team_token="${TEAM_TOKEN}" \
-F notes="Build uploaded automatically from server." \
-F distribution_lists="internal"
Run Code Online (Sandbox Code Playgroud)
更新11/20:
一个很好的资源尝试: TestFlight机器人
几周前我没有让它工作,但是自从我上次尝试以来,帖子已经更新了.
所以我有几个Xcode机器人设置和每晚运行,他们已经成功构建了几个星期,但我不知道Xcode服务器自动安装Xcode 5.1更新,现在我在xcode构建中得到以下日志错误安慰...
2014-03-14 03:02:16.022 xcodebuild[37984:100b] [MT] DVTDeviceSearch: Searching for device with type 'iOS Simulator', options: {
OS = "7.0";
name = "iPhone Retina (4-inch)";
}, genericOnly: NO allowMultiple:NO timeout:0.000000
2014-03-14 03:03:16.148 xcodebuild[37984:100b] [MT] DVTDeviceSearch: No devices located: Error Domain=DVTDeviceErrorDomain Code=6 "The requested device could not be found because no available devices matched the request." UserInfo=0x7ff0e5f481b0 {NSLocalizedDescription=The requested device could not be found because no available devices matched the request.}.
xcodebuild: error: Was unable to find a destination matching the arguments …
Run Code Online (Sandbox Code Playgroud) 冒这个问题"过于模糊"的风险......
我们有一个运行其他(非iOS)软件项目的Jenkins系统.我想设置每晚Xcode构建并部署到Testflight以用于许多iOS项目.问题是哪种方式最好.使用内置的XCode机制进行自动构建是正确的,但是鉴于Jenkins已经到位,使用Jenkins而不是XCode机器人有什么显着的好处吗?
一些标准是: - 易于设置 - 可靠性 - 最大限度地减少xcode功能发生变化时的痛苦
谢谢
我有一个Xcode服务器设置了几个用于iOS项目的机器人(使用Xcode 6.1编译),所有这些都包含单元测试目标
我好像无法在模拟器中运行那些测试; 到目前为止所有尝试都失败了同样的错误(模拟器启动超时):
Test target NAME_OF_MY_TARGET encountered an error (Timed out waiting 120 seconds for simulator to boot, current state is 1. If you believe this error represents a bug, please attach the log file at [...])
Run Code Online (Sandbox Code Playgroud)
当然,建议的日志文件路径不是服务器上的有效路径,因此无法检查日志
xcode-bots ×10
xcode ×8
ios ×5
xcode-server ×2
xcode5 ×2
git ×1
jenkins ×1
ssh ×1
testflight ×1
unit-testing ×1
xcode6 ×1
xcode8 ×1