通过命令行或通过CI运行测试时,在远程系统上获得以下错误。知道这个错误意味着什么吗?
检查依赖关系
TEST BUILD SUCCEEDED
++ echo' $ if [$? -ne 0];然后回声" TestApp Build END:失败&#34 ;; 1号出口; else echo" TestApp Build END:Success&#34 ;;音响' $ if [$? -ne 0 ]。然后回声" TestApp Build END:失败&#34 ;; 1号出口;否则回声 " TestApp Build END:成功&#34 ;;网络
++' [' 0 -ne 0']'
++ echo' TestApp Build END:成功' TestApp Build END:成功
++ echo' $ echo" TestApp测试开始"' $ echo" TestApp测试开始"
++ echo' TestApp测试开始' TestApp测试开始
++ echo' $ xcodebuild -workspace $ workSpace -configuration Release -scheme TestApp -sdk iphonesimulator -destination" platform = iOS Simulator,name = iPhone 5s"测试而不建设' $ xcodebuild -workspace $ workSpace -configuration Release -scheme TestApp -sdk iphonesimulator -destination" platform = iOS模拟器,名称= iPhone 5s" 测试而不建设
++ xcodebuild -workspace /Users/jenkins/builds/d167e6a9/0/mobile/mobile/TestWS.xcworkspace -configuration Release -scheme TestApp -sdk iphonesimulator -destination' platform = iOS模拟器,名称= iPhone 5s'测试而不建设
从命令行构建设置: SDKROOT = iphonesimulator11.2
2018-02-08 12:08:33.596 xcodebuild [69929:68347155] IDETestOperationsObserverDebug:编写诊断日志以进行测试 会议: /var/folders/xg/fm1n88cn1ms4_g1xjvcppr9h0000gp/T/com.apple.dt.XCTest/IDETestRunSession-E52EA37D-CDA6-49BB-87E0-2B048AFAAAA1/TestTests-1F0CEE73-76FD-445F-AFA2-3EE31A00C2C6/Session-TestTests-2018-02 -08_120833-QMcQgX.log 2018-02-08 12:08:33.597 xcodebuild [69929:68346310] [MT] IDETestOperationsObserverDebug:(ACCD5B39-684E-4F9E-9A78-8833D58D4BEE) 开始测试会议TestTests-ACCD5B39-684E-4F9E-9A78-8833D58D4BEE 在2018-02-08 12:08:33.597与目标Xcode 9C40b {SimDevice:iPhone 5s (4CA91C43-C7EB-49AA-863C-F3C57DA0D31F,iOS 11.2,已启动)}(11.2 (15C107))2018-02-08 12:08:33.607 xcodebuild [69929:68347155] IDETestOperationsObserverDebug:编写诊断日志以进行测试 会议: /var/folders/xg/fm1n88cn1ms4_g1xjvcppr9h0000gp/T/com.apple.dt.XCTest/IDETestRunSession-E52EA37D-CDA6-49BB-87E0-2B048AFAAAA1/TestUITests-20983E39-1D27-45B8-A723-374F255F7984/Session-TestUITests-2018-02 -08_120833-Uka2ZO.log 2018-02-08 12:08:33.607 xcodebuild [69929:68346310] [MT] IDETestOperationsObserverDebug:(8507C627-5254-4196-8E76-C2402497A2AC) 开始测试会话 TestUITests-8507C627-5254-4196-8E76-C2402497A2AC at 2018-02-08 12:08:33.608目标为Xcode 9C40b {SimDevice:iPhone 5s (4CA91C43-C7EB-49AA-863C-F3C57DA0D31F,iOS 11.2,已启动)}(11.2
(15C107))2018-02-08 12:11:33.560 xcodebuild [69929:68346310] 错误 Domain = IDETestOperationsObserverErrorDomain Code = 6"早期意外 退出,操作从未完成引导 - 不会重启 试图" UserInfo = {NSLocalizedDescription =早期意外退出, 操作永远不会完成自举 - 不会尝试重启}
TEST EXECUTE FAILED
2018-02-08 12:11:10.166813 + 0530 TestUITests-Runner [70248:68362844]
事务中调用的+ [CATransaction synchronize] 2018-02-08 12:11:10.215450 + 0530 TestUITests-Runner [70248:68362844]正在运行 测试... 2018-02-08 12:11:11.995867 + 0530 TestUITests-Runner [70248:68362844]继续在中运行测试 任务ID为1的背景测试套件'所有测试'开始于2018-02-08 12:11:12.697 Test Suite' TestUITests.xctest'开始于2018-02-08 12:11:12.699 Test Suite' TestUITests'开始于2018-02-08 12:11:12.699测试用例' - [TestUITests.TestUITests testExample]' 开始。 t = 0.00s在2018-02-08 12:11:12.700开始测试 t = 0.08s设置 t = 0.09s打开com.Test.mobileapp t = 0.12s启动com.Test.mobileapp t = 10.07s等待com.Test.mobileapp空闲 t = 19.67s撕下测试案例' - [TestUITests.TestUITests testExample]'通过(19.871秒)。测试套件' TestUITests'通过 于2018-02-08 12:11:32.571。执行1次测试,0次失败(0 意外)在19.871(19.872)秒测试套件' TestUITests.xctest' 于2018-02-08 12:11:32.571通过。执行1次测试,失败0次 (0意外)在19.871(19.873)秒测试套件'所有测试' 于2018-02-08 12:11:32.572通过。执行1次测试,失败0次 (0意外)在19.871(19.875)秒
set -eo pipefail
设置+ o noclobber
eval'
退出0错误:作业失败:退出状态1