HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – Xcode服务器CI Bot测试会话退出(-1)大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
尝试在 XcodeServer上针对模拟器设备运行测试时,我收到错误.测试有时会传递给一个设备,而对另一个设备进行@R_992_10772@,但是失败的设备并不总是相同的.这可能发生在单个会话中.

日志文件错误如下:

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 session request.
2015-03-23 10:45:05.254 WaiTing for test process to check in...,will wait up to 120s
2015-03-23 10:46:47.578 Test operation failure: Test session exited(-1) without checking in.
2015-03-23 10:46:47.645 _finishWithError:Error Domain=IDEUnitTestsOperationsObserverErrorDomain Code=3 "Test session exited(-1) without checking in." UserInfo=0x7f8be43e40c0 {NSLocalizedDescription=Test session exited(-1) without checking in.} didCancel: 1

任何想法都会很有帮助.

解决方法

模拟器需要运行用户GUI上下文.如果服务器是从/ Library / launchdaemons启动的,那么它在系统(根)上下文中运行,并且没有GUI上下文.如果使用Atlassian Bamboo as well as Jenkins for CI,这是一个问题.Facebook开发者有 also encountered this problem with xctool.

可能需要从用户上下文启动XcodeServer,即在〜/ Library / LaunchAgents中创建一个plist文件,并让该用户持续登录.我认为Apple会在@R_319_9382@解决问题.

大佬总结

以上是大佬教程为你收集整理的ios – Xcode服务器CI Bot测试会话退出(-1)全部内容,希望文章能够帮你解决ios – Xcode服务器CI Bot测试会话退出(-1)所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。