Ios Fastlane未能通过Jenkins的测试

Ios Fastlane未能通过Jenkins的测试,ios,jenkins,groovy,fastlane,Ios,Jenkins,Groovy,Fastlane,我试图在Jenkins上运行fastlane扫描,测试执行良好,通过,但在最后一部分,它似乎失败了,因为它无法访问或启动模拟器: [32;1m Executed 337 tests, with 0 failures (0 unexpected) in 5.657 (5.702) seconds [0m 2018-12-19 11:09:41.006 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 34.991 ela

我试图在Jenkins上运行fastlane扫描,测试执行良好,通过,但在最后一部分,它似乎失败了,因为它无法访问或启动模拟器:

[32;1m   Executed 337 tests, with 0 failures (0 unexpected) in 5.657 (5.702) seconds
[0m
2018-12-19 11:09:41.006 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 34.991 elapsed -- Testing started completed.
2018-12-19 11:09:41.006 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2018-12-19 11:09:41.007 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 34.991 sec, +34.991 sec -- end
2018-12-19 11:09:41.007 xcodebuild[87795:568022] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted, NSUnderlyingError=0x7fa957d4a580 {Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Test runner exited before starting test execution." UserInfo={NSLocalizedDescription=Test runner exited before starting test execution., NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the log file at /Users/admin/.jenkins/workspace/app/jenkins_build/app/logs/App Development.test_result/3_Test/Diagnostics/App-C8F63971-F551-4B88-9B36-2CD1895231B9/Lassie-55B9D4CF-E286-4D7E-9C3D-2F9EF57C9E2B/Session-Lassie-2018-12-19_110906-AgsuGb.log}}}

Testing failed:
App Development.app (92694) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying error: Test runner exited before starting test execution.))
** TEST FAILED **
奇怪的是:如果它尝试在shell中运行相同的命令,那么它就可以正常工作。 在开始构建之前已经尝试重新启动和重置所有模拟器,将“始终嵌入swift标准库”更改为“否”,禁用并行测试,但没有任何效果

[编辑]: 添加了Xcode生成日志:


12:13:25.326 xcodebuild[4767:695436]在
xcodebuild
的错误消息中提到的日志是什么?@janpio刚刚用Xcode日志编辑过。可能是因为fastlane关闭了前一组测试的模拟器(这需要一些时间),并尝试在这个“关闭”的模拟器设备上启动新的测试?你有多少组测试?你能和这个测试配置共享Fastfile吗?你能详细说明在shell中运行相同命令的意思吗?这可能是一些用户问题,因此最好的选择是在Jenkins中将工作命令设置为execute bash script,以确保具有相同的设置。正如我从fastfile中看到的,您的项目中也使用了CocoaPods。我们有一个非常类似的问题,这是使用不受支持的pods版本创建的Xcode 10项目的副作用。我们可以通过安装CocoaPods的预版本来修复它,该版本现在已经发布了。更新到最新CocoaPods版本后,此问题是否仍然存在?