当Xcode Service bot尝试使用run unit testsenabled 执行构建时,构建将始终失败.当我查看日志文件时,同样的错误会重复多次:
xcsbuildd[1966] <Warning>: [XCSBuildOperation.m:106 7368f310 +2126ms] Preflight connection to /var/XCSControl/com.apple.XCSTestUserPreflightService failed; retrying: No such file or directory
Run Code Online (Sandbox Code Playgroud)
几行后面跟着这些错误消息:
xcsbuildd[1966] <Error>: [XCSBuildOperation.m:102 7368f310 +2104ms] Timed out trying to connect to CG Session; giving up after 60 seconds
xcsbuildd[1966] <Error>: [XCSOperation.m:33 7368f310 +0ms] Error Domain=XCSBuildServiceDomain Code=0 "Cancelled integration because headless test environment is required but not available after 60s" UserInfo=0x7fa952571bd0 {NSLocalizedDescription=Cancelled integration because headless test environment is required but not available after 60s}
xcsbuildd[1966] <Debug>: …Run Code Online (Sandbox Code Playgroud) 在我创建新的存储库后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) 我一直在调查使用Xcode Server进行CI.我已经解决了一些问题,但现在有一个困扰我的问题.
构建似乎工作正常,但在测试阶段挂起,并在日志的底部生成:
2015-11-25 14:44:45.650 xcodebuild[58280:821560] iPhoneSimulator: D7097422-C058-44DB-A275-CE1A44B11023: Executable terminated at path: /Applications/Xcode7.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest (status = 6)
Sampling process 58280 for 10 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Sample analysis of process 58280 written to file /Library/Developer/XcodeServer/Integrations/Integration-269b1638e732255aefa82f1688077c72/58280.sample
sample[59879]: 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[59880]: sample cannot find any existing process you have access to which …Run Code Online (Sandbox Code Playgroud) 我的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 Bot时选中"并行运行测试"选项,同时在iOS 8.4到11.0的所有设备模拟器上运行我的单元测试.不幸的是,在尝试启动第13个模拟器后,它会在构建日志中出现错误消息:
xcodebuild: error: Failed to build workspace xxxxx with scheme yyyyy.
Reason: Unable to boot device due to insufficient system resources.
Testing failed on 'iPhone 4s'
Run Code Online (Sandbox Code Playgroud)
我在mac mini上运行服务器,我认为由于内存不足,它无法同时运行这么多模拟器.
谁有经验呢?
在过去的几天里,我一直在努力让CI使用运行OS X Server的外部mac mini.但是,我在OS X Server 3.2.1和XCode 6.1b3上遇到了很多问题.
看起来Apple修复了Xcode 6.1b3中的一个问题,该问题没有将正确的配置文件放入Portal.keychain.但是,我的集成现在还没有运行.
运行干净的OS X构建后,XCode服务器将无法集成.我成功连接到服务器并创建了一个机器人.如果我在我的开发机器上访问"SERVER.local",我会看到我创建的机器人.

一切都设置正确(包括立即集成复选框),但我的集成处于"挂起"状态.我检查了system.log,似乎没有发生任何事情.


这可能是完全不相关的,但每次我点击挂起的集成时,我都会在system.log中收到此错误:
NSFileCoordinator only handles URLs that use the file: scheme. This one does not:
x-code-xcsbot://XXX
Run Code Online (Sandbox Code Playgroud)
我不确定这是否是OS X服务器3.2.1中引入的新问题,或者它是否只是一个设置问题.显然没有其他人有这个问题,在Google/SO上找不到任何东西.
问题:如何使用Deliver从运行在Xcode 7和Server 4.1上的Bot上传IPA到itunesconnect?
我已经能够在Xcode 6.4,Server 4.1中使用机器人和Deliver(通过fastlane)建立持续集成解决方案.一旦我升级到Xcode 7 beta-3,我的机器人就停止了工作.
以下是我为Xcode 6.4所做的简要概述:
gem install --user-install deliver#Run To Gemexport PATH=$PATH:/var/_xcsbuildd/.gem/ruby/2.0.0/bin#Run将Gems添加到Path从后触发:
echo `DELIVER_PASSWORD="Password"
/var/_xcsbuildd/.gem/ruby/2.0.0/bin/deliver testflight
"${IPA_PATH}" -a 101233338 -u example@gmail.com --beta`
Run Code Online (Sandbox Code Playgroud)一切都运行良好,每次集成后都会将构建内容上传到itunesconnect.
当我升级到Xcode 7时,我无法再使用Deliver上传到itunesconnect.这是我的Xcode 7工作流程:
发布触发器1:成功构建IPA(使用此Apple开发人员帖子的推荐)
xcrun xcodebuild -exportArchive -archivePath
$XCS_ARCHIVE -exportPath $XCS_ARCHIVE
-exportOptionsPlist /Library/Developer/XcodeServer/ExportOptions.plist
-IDEPostProgressNotifications=YES
-DVTAllowServerCertificates=YES
-DVTSigningCertificateSourceLogLevel=3
-DVTSigningCertificateManagerLogLevel=3
-DTDKProvisioningProfileExtraSearchPaths=/Library/Developer/XcodeServer/ProvisioningProfiles
Run Code Online (Sandbox Code Playgroud)尝试使用Deliver上传IPA:
echo `DELIVER_PASSWORD="Password"
/var/_xcsbuildd/.gem/ruby/2.0.0/bin/deliver testflight
"${IPA_PATH}" -a 101233338 -u example@gmail.com --beta`
Run Code Online (Sandbox Code Playgroud)结果:
构建服务问题:终止xcodebuild,因为它没有产生太长时间的输出.
注意:我可以使用机器人生成的IPA并通过终端上传它们.
Xcode没有打印出所有日志,当我将输出重定向到文件时,看起来Deliver运行得很好
ESC[37m[12:03:08]: ESC[0mESC[32mReady to …Run Code Online (Sandbox Code Playgroud) 尝试在XcodeServer上针对模拟器设备运行测试时出错.测试有时会传递给一个设备而另一个设备会失败,但是失败的设备并不总是相同的.这可以在单个会话中发生.
日志文件错误如下:
2015-03-23 10:44:11.029 Initializing test infrastructure.
2015-03-23 10:44:11.029 Writing testing status log to /Library/Developer/XcodeServer/Integrations/Integration-7e6e54f21a2fd25cddc9df0436cb3688/Session-2015-03-23_10:44:10-tH1BD4.log.
2015-03-23 10:44:28.676 Launch session started, setting a disallow-finish-token on the run operation.
2015-03-23 10:44:30.352 Adding console adaptor for test process.
2015-03-23 10:44:39.566 Creating the connection.
2015-03-23 10:44:39.567 Listening for proxy connection request from the test bundle (all platforms)
2015-03-23 10:44:39.567 Resuming the connection.
2015-03-23 10:44:39.567 Test connection requires daemon assistance.
2015-03-23 10:44:39.568 Checking test manager availability..., will wait up to 120s
2015-03-23 10:45:05.253 testmanagerd handled …Run Code Online (Sandbox Code Playgroud) 我目前尝试使用Xcode 9设置Xcode服务器,但我坚持使用此Keychain密码请求.我想这与之前的Xcode/OS X Server安装有关,因为Xcode Server是OS X Server的一部分.
但是我该如何摆脱这个呢?
编辑:正如评论中提到的:既不接受系统/ admin-user的密码也不接受Xcode Server的专用帐户密码.
我们目前为我们的CI构建设置了Xcode服务器.
当尝试在设备上下载构建时,我通过SSL访问时遇到了"无法连接到server.local".
当我尝试通过http下载时,我使用'无法安装应用程序创建,因为server.local的证书无效'
我相信这与iOS 7.1中OTA下载的SSL验证有关,但我使用的是自我分配的证书.
这是Xcode服务器的错误还是限制.我们需要一个非自我分配的证书吗?
谢谢
担
xcode-server ×10
xcode ×8
ios ×5
bots ×2
osx-server ×2
xcode-bots ×2
xcode9 ×2
git ×1
logging ×1
macos ×1
ssh ×1
testing ×1
xcode7 ×1